huynqbibabo / react-native-google-cloud-speech-to-text

MIT License
17 stars 4 forks source link

RecognitionConfig #3

Open kuruyasin8 opened 2 years ago

kuruyasin8 commented 2 years ago

Hi,

I can't use enhanced models and speechContexts defined in RecognitionConfig is there any way to set RecognitionConfig?

const result: SpeechStartEvent = await GoogleCloudSpeechToText.start({ speechToFile: true, languageCode: 'tr-TR', speechContexts: [{ phrases: ['$00V_CLASS_AM_RADIO_FREQUENCY', '$OOV_CLASS_FULLPHONENUM', '$OOV_CLASS_ADDRESSNUM', '$DAY', '$MONTH', '$YEAR', '$TIME', '$POSTALCODE', '$OPERAND', '$ORDINAL', '$PERCENT' ], boost: 10, }], profanityFilter: false, enableWordTimeOffsets: true, useEnhanced: true, model: 'phone', });

thanks.