refactor: to Scenarios directory

This commit is contained in:
Neko Ayaka
2025-07-21 23:54:44 +08:00
parent f5fd13497c
commit 8d67d6941a
12 changed files with 5 additions and 7 deletions
@@ -49,6 +49,7 @@ async function handleSpeechGeneration(ctx: { data: string }) {
try {
const input = ctx.data
const res = await props.generateSpeech(input, props.voice, false)
// Decode the ArrayBuffer into an AudioBuffer
@@ -60,11 +61,7 @@ async function handleSpeechGeneration(ctx: { data: string }) {
}
}
const ttsQueue = useQueue<string>({
handlers: [
handleSpeechGeneration,
],
})
const ttsQueue = useQueue<string>({ handlers: [handleSpeechGeneration] })
const messageContentQueue = useMessageContentQueue(ttsQueue)
@@ -77,6 +74,7 @@ async function testChunking() {
for await (const chunk of chunkTTSInput(props.text, { boost: 1, minimumWords: 4, maximumWords: 12 })) {
chunks.push(chunk)
}
ttsInputChunks.value = chunks
}
</script>
@@ -1,2 +1,4 @@
export * from './Dialogs'
export * from './Providers'
export * from './Settings'
export * from './Toasters'
@@ -1,5 +1,3 @@
export { default as ColorPalette } from './ColorPalette.vue'
export * from './Dialogs'
export { default as PoppingSubtitles } from './PoppingSubtitles.web.vue'
export { default as PoppinText } from './PoppinText/PoppinText.web.vue'
export * from './Toasters'