Skip to content

Commit

Permalink
chore: add support to pass definition for stt
Browse files Browse the repository at this point in the history
  • Loading branch information
ymshenyu committed Dec 11, 2024
1 parent 9c7cbbe commit 60a7320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/tools/provider/builtin/azurespeech/tools/asr.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def _invoke(self, user_id: str, tool_parameters: dict[str, Any]) -> list[ToolInv

files: dict = {"audio": audio_binary}
if definition:
files["definition"] = definition
files["definition"] = '"{}"'.format(definition)
resp = requests.post(
"https://{}.api.cognitive.microsoft.com/speechtotext/transcriptions:transcribe?api-version={}".format(
self.runtime.credentials.get("azure_speech_region"),
Expand Down

0 comments on commit 60a7320

Please sign in to comment.