oracle / oracle/oci-ruby-sdk

Add 'auto' language code support for Whisper automatic language detection in AI Speech

Open
#85 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

SDK
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:

The OCI Python SDK supports this functionality via the LANGUAGE_CODE_AUTO = "auto" constant in TranscriptionModelDetails:

https://github.com/oracle/oci-python-sdk/blob/master/src/oci/ai_speech/models/transcription_model_details.py#L32

However, the Ruby SDK does not currently include this constant:

https://github.com/oracle/oci-ruby-sdk/blob/master/lib/oci/ai_speech/models/transcription_model_details.rb

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.