thread simplification + handling interuption

This commit is contained in:
sathwika
2026-04-10 17:18:22 +05:30
parent 8abda808ca
commit 746fadc2b5
3 changed files with 204 additions and 113 deletions

View File

@@ -1,9 +1,6 @@
- Added cross-sentence stitching support to NvidiaTTSService. Multiple sentences within an LLM turn are fed into a single `SynthesizeOnline` gRPC stream, enabling Magpie's seamless audio across sentence boundaries (requires Magpie TTS model v1.7.0+).
- Added new parameters to NvidiaTTSService:
- `custom_dictionary` for IPA-based custom pronunciation
- `encoding` for output audio encoding format
- `zero_shot_audio_prompt_file` for zero-shot voice cloning with file caching
- `audio_prompt_encoding` for zero-shot audio prompt format
- Added `can_generate_metrics` returning True for NvidiaTTSService.
- Added `stop_all_metrics()` call on audio context interruption.
- Added gRPC error handling for synthesis config retrieval.
- Added enhancements to `NvidiaTTSService`:
- Cross-sentence stitching: multiple sentences within an LLM turn are fed into a single `SynthesizeOnline` gRPC stream for seamless audio across sentence boundaries (requires Magpie TTS model v1.7.0+).
- `custom_dictionary` and `encoding` parameters for IPA-based custom pronunciation and output audio encoding.
- Metrics generation (`can_generate_metrics` returns true) and `stop_all_metrics()` when an audio context is interrupted.
- gRPC error handling around synthesis config retrieval (`GetRivaSynthesisConfig`).