-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
54 additions
and
21 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## 範例_會議記錄小幫手 | ||
|
||
## 即時語音轉文字會議記錄平台是一個專為學校班會和企業會議設計的高效工具,旨在簡化會議記錄的過程。用戶只需將錄製的語音檔上傳至平台,系統便能自動將語音內容轉換為文字,省去手動記錄的繁瑣。該平台支持多種語言的轉錄,確保不同語言背景的用戶均能輕鬆使用。其操作簡單直觀,無需專業技術知識,適合教師、學生及各類企業用戶。平台還重視數據安全,確保上傳的會議內容不會被未經授權的第三方訪問。透過這一工具,用戶能夠專注於會議討論,而不必擔心記錄的準確性和完整性,從而提升會議的效率和效果。 | ||
|
||
# 創建步驟請參考,範例_長照法規AGENT | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,49 @@ | ||
# 工作室接入 | ||
|
||
|
||
提供 RESTful API 接口進行工作室和其他服務串接: | ||
# API KEY位置 | ||
|
||
--- | ||
|
||
## 步驟說明 | ||
|
||
### 1. 獲取 API | ||
- 進入 **工作室**。 | ||
- 點擊三個點選項,獲取 API。 | ||
 | ||
|
||
--- | ||
|
||
### 2. 確認 API 的 URL | ||
- 在橘色方框中可以找到 ID的位置。 | ||
 | ||
|
||
### 3. 可以使用restful API的格式請求服務: | ||
```python | ||
import requests | ||
|
||
url = "https://{host}/api/workspaces/apps/{id}/chat-messages" | ||
|
||
payload = {'session': 'xxxxxxxx', | ||
'text': '請產生會議紀錄'} | ||
files=[ | ||
('file',('會議記錄.mp3',open('會議記錄.mp3','rb'),'audio/mpeg')) | ||
] | ||
headers = { | ||
'API-KEY': 'xxxxxxx' | ||
} | ||
|
||
response = requests.request("POST", url, headers=headers, data=payload, files=files) | ||
|
||
print(response.text) | ||
|
||
``` | ||
##### 工具註解 | ||
|
||
| 參數 | 說明 | | ||
|---------------|----------------------------------------------------------------------------------------------| | ||
| **session** | 同一次對話的 `uuid`,類型為 `str`,非必填。 | | ||
| **text** | 要求服務執行的內容。如果 `file` 中有資料,可以不用填寫。例如:「請幫我整理會議記錄」。 | | ||
| **file** | 要請服務處理的檔案,目前支援格式:`mp3`、`pdf`、`jpg`、`png`。 | | ||
| **API-KEY** | 需向 AgentFabric 管理員申請 ID。 |