mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-28 00:00:38 +00:00
* feat(gnani): add Prisma realtime transcription Signed-off-by: Gaurav Chaudhary <chaudharygaurav2004@gmail.com> * fix(gnani): account for forwarded realtime transcription audio Signed-off-by: Gaurav Chaudhary <chaudharygaurav2004@gmail.com> * fix(gnani): bound realtime audio appends to four seconds at the client rate * chore(deps): authorize the PSF-2.0 license of audioop-lts * fix(gnani): anti-alias resampled audio, honor drop_params, and bill each utterance Resampled 24, 44.1 and 48 kHz input now runs through an 8 kHz low-pass filter before ratecv, with the filter tail flushed on commit. Tuned server_vad, semantic_vad and prompt fail unless drop_params is on, which drops them and keeps server_vad. Prisma v2.5 sessions need one explicit language before the first append, matching REST. Each transcript bills Gnani's audio_duration_ms, with silence billed with the next transcript or at close. The README names the session limits and the missing price * fix(gnani): keep realtime sessions open on rejected events and hold real-time pacing A rejected client event now returns an error and the session keeps relaying, since Gnani sets up at connect time through headers Forwarding keeps a fixed 32 ms schedule, so sleep overshoot no longer adds up over a session, and a stall still never bursts Gnani speech_start and the transcript now emit input_audio_buffer.speech_started and speech_stopped with the transcript's item id turn_detection null or any detector other than server_vad is dropped under drop_params, and repeating the session rate no longer resets the filter * fix(gnani): refuse plaintext realtime bases and document commits that get no reply The realtime URL builder turned any api_base into a wss URL but kept a ws:// or http:// base as plaintext ws, which would send the Gnani key unencrypted. It now accepts only https:// and wss:// bases and always connects over wss The README now says a commit with no speech since the last transcript gets no reply, and that api_base must be https:// or wss:// * fix(gnani): refuse noise_reduction and include unless drop_params drops them The shared session parser now reports noise_reduction, in either layout, and include as unsupported session settings. Gnani refuses them with an error naming drop_params, and drops them with a warning when drop_params is on, as it already does for a transcription prompt and server_vad tuning. Soniox only logs them noise_reduction set to null and an empty include stay accepted, since they ask for nothing Gnani lacks * fix(gnani): keep realtime on when a deployment stores a transcription-only endpoint list * fix(gnani): gate realtime on the loaded cost map so deployments cannot switch it on or off * fix(gnani): open realtime for a model registered under its bare name * docs(gnani): keep the realtime usage guide on the docs site only The realtime README sends user docs to litellm-docs, where the Gnani provider page now covers the same setup, client example, session rules and limits, so the duplicate section here is removed and only the provider entry stays --------- Signed-off-by: Gaurav Chaudhary <chaudharygaurav2004@gmail.com> Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| audio_transcription | ||
| realtime | ||
| __init__.py | ||