Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: serde rename of G711ULAW AudioFormat in Realtime Types #349

Open
iskng opened this issue Mar 13, 2025 · 0 comments
Open

Fix: serde rename of G711ULAW AudioFormat in Realtime Types #349

iskng opened this issue Mar 13, 2025 · 0 comments

Comments

@iskng
Copy link

iskng commented Mar 13, 2025

OpenAI session error: Invalid value: 'g711-ulaw'. Supported values are: 'pcm16', 'g711_ulaw', and 'g711_alaw'.

Spec
input_audio_format
string

Optional
The format of input audio. Options are pcm16, g711_ulaw, or g711_alaw. For pcm16, input audio must be 16-bit PCM at a 24kHz sample rate, single channel (mono), and little-endian byte order.

#[derive(Debug, Serialize, Deserialize, Clone)] pub enum AudioFormat { #[serde(rename = "pcm16")] PCM16, #[serde(rename = "g711-ulaw")] G711ULAW, #[serde(rename = "g711-alaw")] G711ALAW, }

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

No branches or pull requests

1 participant