tts: show speaking sentence and chapter info in tts media session (#1289)
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
type TTSMark = {
|
||||
offset: number;
|
||||
name: string;
|
||||
text: string;
|
||||
language?: string;
|
||||
};
|
||||
import { TTSMark } from '@/services/tts/types';
|
||||
|
||||
const cleanTextContent = (text: string) =>
|
||||
text.replace(/\r\n/g, ' ').replace(/\r/g, ' ').replace(/\n/g, ' ').trimStart();
|
||||
|
||||
Reference in New Issue
Block a user