fix: audio error message

This commit is contained in:
jialin
2024-12-03 17:33:49 +08:00
parent 83294abaf0
commit 20f809740c
10 changed files with 47 additions and 17 deletions
@@ -124,6 +124,11 @@ const SpeechItem: React.FC<SpeechContentProps> = (props) => {
debounceSeek(value);
};
const handlOnChangeComplete = useCallback((value: number) => {
ref.current?.seekTo(value / duration);
setCurrentTime(value);
}, []);
const onDownload = useCallback(() => {
const url = props.audioUrl || '';
const filename = `audio-${dayjs().format('YYYYMMDDHHmmss')}.${props.format}`;