@@ -76,32 +76,39 @@ uv run python scripts/files.py delete-multiple-files "file1.txt" "file2.jpg" "fi
76
76
### Speeches Service
77
77
78
78
``` shell
79
+ AZURE_BLOB_STORAGE_CONTAINER_SAS_TOKEN=" <your_sas_token>"
80
+ AZURE_BLOB_STORAGE_CONTAINER_URL=" https://<storage_account_name>.blob.core.windows.net/<container_name>"
81
+ FILE_NAME=" path/to/your/audio/file.wav"
82
+ URL=" ${AZURE_BLOB_STORAGE_CONTAINER_URL} /${FILE_NAME} ?${AZURE_BLOB_STORAGE_CONTAINER_SAS_TOKEN} "
83
+
79
84
# Help
80
85
uv run python scripts/speeches.py --help
81
86
82
87
# Create a new transcription job
83
- uv run python scripts/speeches.py create-transcription " https://example.com/audio.wav" --locale " ja-JP" --name " My Transcription"
88
+ uv run python scripts/speeches.py create-transcription " $URL " \
89
+ --locale " ja-JP" \
90
+ --name " My Transcription"
84
91
85
92
# Get transcription job status
86
- uv run python scripts/speeches.py get-transcription JOB_ID
93
+ uv run python scripts/speeches.py get-transcription " $JOB_ID "
94
+
95
+ # Wait for transcription completion
96
+ uv run python scripts/speeches.py wait-for-completion " $JOB_ID " --timeout 300 --interval 10
87
97
88
98
# Get transcription files
89
- uv run python scripts/speeches.py get-transcription-files JOB_ID
99
+ uv run python scripts/speeches.py get-transcription-files " $ JOB_ID"
90
100
91
101
# Get transcription result
92
- uv run python scripts/speeches.py get-transcription-result " https://example.com/result.json " --save " result.json"
102
+ uv run python scripts/speeches.py get-transcription-result " https://<contentUrl> " --save " result.json"
93
103
94
104
# List all transcription jobs
95
105
uv run python scripts/speeches.py list-transcriptions
96
106
97
- # Wait for transcription completion
98
- uv run python scripts/speeches.py wait-for-completion JOB_ID --timeout 300 --interval 10
99
-
100
107
# Delete transcription job
101
- uv run python scripts/speeches.py delete-transcription JOB_ID
108
+ uv run python scripts/speeches.py delete-transcription " $ JOB_ID"
102
109
103
110
# Delete transcription job (without confirmation)
104
- uv run python scripts/speeches.py delete-transcription JOB_ID --force
111
+ uv run python scripts/speeches.py delete-transcription " $ JOB_ID" --force
105
112
```
106
113
107
114
## MCP
@@ -157,3 +164,7 @@ az resource update \
157
164
- [ FastAPI のテレメトリデータを Azure Application Insights に送る] ( https://qiita.com/hoto17296/items/2f366dfabdbe3d1d4e97 )
158
165
- [ 【Azure Functions】 - Application Insights のログが表示されない問題] ( https://zenn.dev/headwaters/articles/ff19f7e1b99b44 )
159
166
- [ opentelemetry-instrumentation-fastapi (python) から OpenTelemetry に入門する] ( https://zenn.dev/taxin/articles/opentelemetry-fast-api-instrumentation-basics )
167
+
168
+ ### Azure AI Speech
169
+
170
+ - [ バッチ文字起こしとは] ( https://learn.microsoft.com/ja-jp/azure/ai-services/speech-service/batch-transcription )
0 commit comments