Skip to content

Conversation

@markgoertz
Copy link

I noticed Azure speech has an option to include Confidence levels. Azure Speech NBest, which is not yet supported on pipecat Azure STT Service. Which we want to log with tracing in Langfuse.

This pull request adds support for extracting and tracing confidence scores and detailed NBest transcription data from Azure Speech-to-Text (STT) results.

…NBest data handling

- Added `enable_confidence` parameter to `AzureSTTService` for optional confidence score extraction.
- Implemented `_extract_nbest_from_result` method to parse NBest data from Azure recognition results.

Updated `_on_handle_recognized` and `_on_handle_recognizing` methods to log confidence scores when enabled.
- Modified `traced_stt` decorator to support additional service-specific attributes for tracing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant