Skip to content

Commit

Permalink
Merge pull request #135 from tpisto/main
Browse files Browse the repository at this point in the history
Update types.rs
  • Loading branch information
dongri authored Dec 16, 2024
2 parents 8ca5630 + 80bf37b commit c5bec93
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/realtime/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,22 @@ pub struct Session {
#[serde(rename_all = "lowercase")]
pub enum RealtimeVoice {
Alloy,
Shimmer,
Ash,
Ballad,
Coral,
Echo,
Sage,
Shimmer,
Verse,
}

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

Expand Down

0 comments on commit c5bec93

Please sign in to comment.