Closed davidvonthenen closed 4 months ago
The recent changes to the codebase involve adding language-related fields to the Word
and Alternative
structs in two different packages and marking certain methods as deprecated. Specifically, Word
now includes a Language
field, and Alternative
includes a Languages
field. Additionally, methods ToWebVTT
and ToSRT
in PreRecordedResponse
have been deprecated with guidance to use other projects for VTT or SRT generation.
File Path | Change Summary |
---|---|
pkg/api/listen/v1/rest/interfaces/types.go |
Added Language string to Word struct and Languages []string to Alternative struct. |
pkg/api/listen/v1/websocket/interfaces/types.go |
Added Language string to Word struct and Languages []string to Alternative struct. |
pkg/api/listen/v1/rest/interfaces/vtt-srt.go |
Deprecated ToWebVTT and ToSRT methods in PreRecordedResponse struct. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Proposed changes
Implements Multi-Lingual Support
Types of changes
What types of changes does your code introduce to the community Go SDK? Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Further comments
NA
Summary by CodeRabbit
New Features
Language
field to theWord
struct for enhanced language identification.Languages
field to theAlternative
struct for supporting multiple languages.Documentation
ToWebVTT
andToSRT
methods in favor of alternative projects for VTT or SRT generation.