Last active
December 19, 2025 13:53
-
-
Save CodeWithOz/d254c811d5a20c2083f593d0a856f875 to your computer and use it in GitHub Desktop.
TTS logic for Listen Better demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| const systemPrompt = getDialogueSystemPrompt(); | |
| const humanMessageContent = `Here's the dialogue script inside triple backticks:\n\n\`\`\`\n${script}\n\`\`\`\n\nNow generate the AUDIO, NOT TEXT, for this dialogue script.`; | |
| const messages = [ | |
| new HumanMessage(`${systemPrompt}\n\n${humanMessageContent}`), | |
| ]; | |
| const result = await model.invoke(messages); | |
| ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment