vapi_client/models/
fallback_neets_voice.rs

1/*
2 * Vapi API
3 *
4 * Voice AI for developers.
5 *
6 * The version of the OpenAPI document: 1.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct FallbackNeetsVoice {
16    /// This is the voice provider that will be used.
17    #[serde(rename = "provider")]
18    pub provider: Provider,
19    #[serde(rename = "voiceId")]
20    pub voice_id: Box<models::NeetsVoiceVoiceId>,
21    /// This is the plan for chunking the model output before it is sent to the voice provider.
22    #[serde(rename = "chunkPlan", skip_serializing_if = "Option::is_none")]
23    pub chunk_plan: Option<Box<models::ChunkPlan>>,
24}
25
26impl FallbackNeetsVoice {
27    pub fn new(provider: Provider, voice_id: models::NeetsVoiceVoiceId) -> FallbackNeetsVoice {
28        FallbackNeetsVoice {
29            provider,
30            voice_id: Box::new(voice_id),
31            chunk_plan: None,
32        }
33    }
34}
35/// This is the voice provider that will be used.
36#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
37pub enum Provider {
38    #[serde(rename = "neets")]
39    Neets,
40}
41
42impl Default for Provider {
43    fn default() -> Provider {
44        Self::Neets
45    }
46}
47