We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8681fa4 commit b4d17adCopy full SHA for b4d17ad
1 file changed
apps/speech/screens/SpeechToTextScreen.tsx
@@ -84,12 +84,10 @@ export const SpeechToTextScreen = ({ onBack }: { onBack: () => void }) => {
84
const decodedAudioData = await audioContext.decodeAudioDataSource(uri);
85
const audioBuffer = decodedAudioData.getChannelData(0);
86
87
- if (enableTimestamps) {
88
- const result = await model.transcribe(audioBuffer, {
89
- enableTimestamps: enableTimestamps,
90
- });
91
- setTranscription(result);
92
- }
+ const result = await model.transcribe(audioBuffer, {
+ enableTimestamps: enableTimestamps as any,
+ });
+ setTranscription(result);
93
} catch (error) {
94
console.error('Error decoding audio data', error);
95
console.warn('Note: Supported file formats: mp3, wav, flac');
0 commit comments