Add 'auto' language code support for Whisper automatic language detection in AI Speech
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 30
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
Labels: enhancement, ai-speech
Description
The Oracle Cloud Infrastructure AI Speech API already supports automatic language detection using "auto" as a language code value, as documented in:
- Oracle Speech API Release Notes - Whisper Support
- Oracle Speech API Documentation - TranscriptionModelDetails
The OCI Python SDK supports this functionality via the LANGUAGE_CODE_AUTO = "auto" constant in TranscriptionModelDetails:
However, the Ruby SDK does not currently include this constant:
Requested Enhancement
Add LANGUAGE_CODE_AUTO = "auto" constant to the TranscriptionModelDetails class in the Ruby SDK and include it in the LANGUAGE_CODE_ENUM array to match both the API specification and the Python SDK implementation.
Use Case
Automatic language detection allows the AI Speech service to automatically identify the spoken language in media files without requiring explicit language code specification. This is particularly useful for:
- Multi-language environments
- Unknown source languages
- Reducing manual locale mapping and configuration
Expected Implementation
LANGUAGE_CODE_AUTO = "auto".freeze
LANGUAGE_CODE_ENUM = [
LANGUAGE_CODE_EN_US,
LANGUAGE_CODE_ES_ES,
# ... other language codes ...
LANGUAGE_CODE_AUTO,
LANGUAGE_CODE_UNKNOWN_ENUM_VALUE
].freeze
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open lib/oci/ai_speech/models/transcription_model_details.rb and compare its language constants and LANGUAGE_CODE_ENUM with the OCI API documentation and the Python SDK implementation. Done means the TranscriptionModelDetails class defines LANGUAGE_CODE_AUTO as "auto" and includes it in LANGUAGE_CODE_ENUM.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- api, cloud
- Issue type
- Feature
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100