vapi_client/models/
background_speech_denoising_plan.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 BackgroundSpeechDenoisingPlan {
16    /// Whether smart denoising using Krisp is enabled.
17    #[serde(rename = "smartDenoisingPlan", skip_serializing_if = "Option::is_none")]
18    pub smart_denoising_plan: Option<models::SmartDenoisingPlan>,
19    /// Whether Fourier denoising is enabled. Note that this is experimental and may not work as expected.  This can be combined with smart denoising, and will be run afterwards.
20    #[serde(
21        rename = "fourierDenoisingPlan",
22        skip_serializing_if = "Option::is_none"
23    )]
24    pub fourier_denoising_plan: Option<models::FourierDenoisingPlan>,
25}
26
27impl BackgroundSpeechDenoisingPlan {
28    pub fn new() -> BackgroundSpeechDenoisingPlan {
29        BackgroundSpeechDenoisingPlan {
30            smart_denoising_plan: None,
31            fourier_denoising_plan: None,
32        }
33    }
34}