/**
 * VOICEVOX ENGINE
 * VOICEVOXの音声合成エンジンです。
 *
 * The version of the OpenAPI document: 0.10.preview.2
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */ import { exists , mapValues } from '../runtime' ; import { AccentPhrase , AccentPhraseFromJSON , AccentPhraseFromJSONTyped , AccentPhraseToJSON , } from './' ; export interface export interface AudioQuery { type { Array < AccentPhrase > } memberof accentPhrases : Array < AccentPhrase > ; type { number } memberof speedScale : number ; type { number } memberof pitchScale : number ; type { number } memberof intonationScale : number ; type { number } memberof volumeScale : number ; type { number } memberof prePhonemeLength : number ; type { number } memberof postPhonemeLength : number ; type { number } memberof outputSamplingRate : number ; type { boolean } memberof outputStereo : boolean ; type { string } memberof kana ? : string ; } export function AudioQueryFromJSON ( json ) { return AudioQueryFromJSONTyped ( json , false ) ; } export function AudioQueryFromJSONTyped ( json , ignoreDiscriminator ) { if ( ( json === undefined ) || ( json === null ) ) { return json ; } return { 'accentPhrases' : ( ( json [ 'accent_phrases' ] as Array < any > ) . map ( AccentPhraseFromJSON ) ) , 'speedScale' : json [ 'speedScale' ] , 'pitchScale' : json [ 'pitchScale' ] , 'intonationScale' : json [ 'intonationScale' ] , 'volumeScale' : json [ 'volumeScale' ] , 'prePhonemeLength' : json [ 'prePhonemeLength' ] , 'postPhonemeLength' : json [ 'postPhonemeLength' ] , 'outputSamplingRate' : json [ 'outputSamplingRate' ] , 'outputStereo' : json [ 'outputStereo' ] , 'kana' : ! exists ( json , 'kana' ) ? undefined : json [ 'kana' ] , } ; } export function AudioQueryToJSON ( value ? ) { if ( value === undefined ) { return undefined ; } if ( value === null ) { return null ; } return { 'accent_phrases' : ( ( value . accentPhrases as Array < any > ) . map ( AccentPhraseToJSON ) ) , 'speedScale' : value . speedScale , 'pitchScale' : value . pitchScale , 'intonationScale' : value . intonationScale , 'volumeScale' : value . volumeScale , 'prePhonemeLength' : value . prePhonemeLength , 'postPhonemeLength' : value . postPhonemeLength , 'outputSamplingRate' : value . outputSamplingRate , 'outputStereo' : value . outputStereo , 'kana' : value . kana , } ; }