Update README and API integration: specify local ASR server details and adjust audio upload parameters
This commit is contained in:
+2
-2
@@ -107,8 +107,8 @@ async def transcribe_note(note_id: str, audio_path: Path) -> None:
|
||||
with audio_path.open("rb") as audio_file:
|
||||
response = await client.post(
|
||||
WHISPER_SERVER_URL,
|
||||
files={"file": (audio_path.name, audio_file, "application/octet-stream")},
|
||||
data={"response_format": "json"},
|
||||
params={"task": "transcribe", "output": "json"},
|
||||
files={"audio_file": (audio_path.name, audio_file, "application/octet-stream")},
|
||||
)
|
||||
response.raise_for_status()
|
||||
transcript = response.json().get("text", "").strip()
|
||||
|
||||
Reference in New Issue
Block a user