Open kuruyasin8 opened 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.
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.