mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-06-04 11:24:00 +08:00
### What problem does this PR solve? Fix: Fail to open console with Firefox #4816 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
6fa34d5532
commit
fa5c7edab4
@ -67,7 +67,9 @@ export const useSpeech = (content: string, audioBinary?: string) => {
|
|||||||
setIsPlaying(false);
|
setIsPlaying(false);
|
||||||
},
|
},
|
||||||
onChunkEnd: () => {},
|
onChunkEnd: () => {},
|
||||||
mimeType: 'audio/mpeg',
|
mimeType: MediaSource.isTypeSupported('audio/mpeg')
|
||||||
|
? 'audio/mpeg'
|
||||||
|
: 'audio/mp4; codecs="mp4a.40.2"', // https://stackoverflow.com/questions/64079424/cannot-replay-mp3-in-firefox-using-mediasource-even-though-it-works-in-chrome
|
||||||
});
|
});
|
||||||
await player.current.init();
|
await player.current.init();
|
||||||
}, []);
|
}, []);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user