You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered the same issue. I use the expo-av package for microphone recording. I resolved it by modifying the output file configuration to match the one mentioned here.
constAUDIO_WAV={isMeteringEnabled: true,android: {
...Audio.RecordingOptionsPresets.HIGH_QUALITY.android,extension: '.wav',outputFormat: AndroidOutputFormat.DEFAULT,audioEncoder: AndroidAudioEncoder.DEFAULT,sampleRate: 16000,// Set sample rate to 16kHznumberOfChannels: 1,// Set number of channels to mono},ios: {
...Audio.RecordingOptionsPresets.HIGH_QUALITY.ios,extension: '.wav',outputFormat: IOSOutputFormat.LINEARPCM,audioQuality: IOSAudioQuality.MAX,sampleRate: 16000,// Set sample rate to 16kHznumberOfChannels: 1,// Set number of channels to mono},web: {mimeType: 'audio/wav',bitsPerSecond: 128000,},};const{ recording }=awaitAudio.Recording.createAsync(AUDIO_WAV);
...
consturi=recording.getURI();const{ promise }=whisper.transcribe(uri,{language: 'en',});
LOG [sizzling] [sizzling] [sizzling] [sizzling] [sizzling] [sizzling] [sizzling] [sizzling] [sizzling] [sizzling] [sizzling] [sizzling] [sizzling] [sizzling] [sizzling] [sizzling] [sizzling] [sizzling] [sizzling] [sizzling] [sizzling] [sizzling] [sizzling] [sizzling] (engine revving) [splashing]
LOG [engine revving]
why is it transcribing everything like this? the audio file contains speech but this is all i get with whisper tiny
The text was updated successfully, but these errors were encountered: