Update README and API integration: specify local ASR server details and adjust audio upload parameters

This commit is contained in:
2026-09-28 14:05:39 +02:00
parent 8d4f46a7d1
commit 0fb66f2cee
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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()