Repository navigation
feat(speech_understanding): support effort, force_translation, speakers, and format_utterances - #264
Open
pylrn wants to merge 1 commit into
Conversation
pylrn
force-pushed
the
feat/speech-understanding-effort-force-translation
branch
2 times, most recently
from
October 21, 2026 19:01
abe7473 to
8ccee7e
Compare
…rs, and format_utterances
- Add SpeechUnderstandingEffort enum ('low', 'medium') to specify task processing effort
- Expose effort parameter across SpeakerIdentificationRequest, TranslationRequest, CustomFormattingRequest, and SummarizationRequest
- Expose force_translation parameter on TranslationRequest
- Expose format_utterances parameter on CustomFormattingRequest
- Add SpeakerDescription model and type speakers parameter on SpeakerIdentificationRequest
- Export SpeechUnderstandingEffort and SpeakerDescription from assemblyai and assemblyai.types
- Harmonize with upstream SummarizationRequest/Response effort support
- Document speech_understanding in TranscriptionConfig options in CLAUDE.md
- Add comprehensive unit tests in tests/unit/test_speech_understanding.py
pylrn
force-pushed
the
feat/speech-understanding-effort-force-translation
branch
from
October 22, 2026 04:57
8ccee7e to
655cf3d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds complete typed support for Speech Understanding enhancements across all feature requests:
effortparameter: Supported acrossSpeakerIdentificationRequest,TranslationRequest,CustomFormattingRequest, and harmonized with upstreamSummarizationRequestandSummarizationResponse.force_translationparameter: Added toTranslationRequestto enable translating audio even when the detected source language matches a target language.format_utterancesparameter: Added toCustomFormattingRequestto format utterance-level text.speakers/SpeakerDescription: AddedSpeakerDescriptionmodel with dictionary compatibility (__getitem__,get,__contains__) and typedspeakersonSpeakerIdentificationRequest.SpeechUnderstandingEffort: Enum (low,medium) exported inassemblyaiandassemblyai.typesand included in__all__.master(including feat(pysdk): Typed support for SU understanding transcript config api #274) with version bumped to1.6.6for CI release checks.Restores full feature and typing parity with
assemblyai-node-sdk(PR #197) andassemblyai-mcp(PR #5).Changes
assemblyai/types.py:SpeechUnderstandingEffortenum (low,medium).SpeakerDescriptionmodel supporting both attribute and dict-item subscripting with open extra properties.speakers: Optional[List[Union[SpeakerDescription, Dict[str, Any]]]] = NoneandeffortonSpeakerIdentificationRequest.force_translation: Optional[bool] = FalseandeffortonTranslationRequest.format_utterances: Optional[bool] = FalseandeffortonCustomFormattingRequest.effortonSummarizationRequestandSummarizationResponseto acceptSpeechUnderstandingEffortenum or literal string.assemblyai/__init__.py: ExportSpeechUnderstandingEffortandSpeakerDescriptionin__all__.assemblyai/__version__.py: Bump to1.6.6.CLAUDE.md: Documentspeech_understandingunderTranscriptionConfigoptions.tests/unit/test_speech_understanding.py: 13 comprehensive unit tests covering enum values, request models, dictionary serialization withexclude_none=True,TranscriptionConfigassignment,SpeakerDescription,format_utterances, and response parsing.Testing
ruff checkandruff format --checkpass cleanly on all modified files.