Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce transcript newlines for function calls/responses #499

Merged
merged 8 commits into from
Nov 20, 2023

Conversation

petersalas
Copy link
Contributor

@petersalas petersalas commented Nov 16, 2023

The TTS buffer only gets flushed when it sees content after a sentence. To ensure that it gets flushed after any pre-function-call filler text, this change:

  • Adds the batchFrames render option to ai-jsx to coalesce updates from different parts of the render tree. (This delays surfacing frames until further rendering is blocked on I/O.)
  • Adds message-level state tracking ("in-progress" | "done") in fixie-sdk to text messages
  • Changes the fixie backend in the voice demo to emit newlines after "done" text messages
  • Stops appending text after "in-progress" text messages

Copy link

vercel bot commented Nov 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ai-jsx-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 18, 2023 2:38am
ai-jsx-nextjs-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 18, 2023 2:38am
ai-jsx-tutorial-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 18, 2023 2:38am
ai-jsx-voice ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 18, 2023 2:38am

packages/voice/src/app/agent/chat.tsx Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants