# Build an AI Voice Assistant with Twilio Voice and Media Streams, Rime's Prism, and Node.js

DevFeed: [Build an AI Voice Assistant with Twilio Voice and Media Streams, Rime's Prism, and Node.js](<https://devfeed.tech/articles/build-an-ai-voice-assistant-with-twilio-voice-and-media-streams-rime-s-prism-and-node-js-109680.md>)

Original publisher: [Read original article](<https://www.twilio.com/en-us/blog/developers/tutorials/integrations/voice-ai-agent-rime-prism-node>)

Author: Paul Kamp, Safdar Jaffari

Published: 2026-10-30T00:00:00Z

Content type: tutorial

Language: en

Sources: [Twilio](<https://devfeed.tech/sources/twilio-blog.md>), [Twilio Blog](<https://devfeed.tech/sources/twilio-blog-2.md>)

Topics: [Conversational AI](<https://devfeed.tech/topics/conversational-ai.md>), [twilio api](<https://devfeed.tech/topics/twilio-api.md>), [function calling](<https://devfeed.tech/topics/function-calling.md>), [Chat Bot](<https://devfeed.tech/topics/chatbot.md>), [Fastify](<https://devfeed.tech/topics/fastify.md>), [IO](<https://devfeed.tech/topics/io.md>), [Learning](<https://devfeed.tech/topics/learning.md>)

Tags: [1-5](<https://devfeed.tech/tags/1-5.md>), [2](<https://devfeed.tech/tags/2.md>), [22](<https://devfeed.tech/tags/22.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-voice-assistant](<https://devfeed.tech/tags/ai-voice-assistant.md>), [build](<https://devfeed.tech/tags/build.md>), [developer-insights](<https://devfeed.tech/tags/developer-insights.md>), [media](<https://devfeed.tech/tags/media.md>), [model](<https://devfeed.tech/tags/model.md>), [node](<https://devfeed.tech/tags/node.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [phone](<https://devfeed.tech/tags/phone.md>), [rime](<https://devfeed.tech/tags/rime.md>), [speech](<https://devfeed.tech/tags/speech.md>), [speech-to-speech](<https://devfeed.tech/tags/speech-to-speech.md>), [streams](<https://devfeed.tech/tags/streams.md>), [twilio](<https://devfeed.tech/tags/twilio.md>), [using](<https://devfeed.tech/tags/using.md>), [voice](<https://devfeed.tech/tags/voice.md>), [voice-assistant](<https://devfeed.tech/tags/voice-assistant.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

The tutorial builds a Node.js phone assistant that connects Twilio Voice and bidirectional Media Streams to Rime's Prism speech-to-speech model. It requires Node.js 22+, Twilio and Rime accounts, a Voice-enabled number, and a public tunnel for local testing. The server uses Fastify and Rime's SDK; audio.js converts Twilio's 8 kHz G.711 μ-law audio to PCM16 for Prism and filters and downsamples Prism's 24 kHz PCM16 replies for Twilio. Media Streams marks track playback in 100 ms chunks so interruptions can report approximately how much of a reply the caller heard, subject to latency. An optional extension uses Twilio Conversation Intelligence to summarize and score sentiment after calls, and Conversation Memory to save and recall caller notes. The tutorial notes that memory lookup is time-limited and that recalled notes should be treated as caller-provided content, used only when relevant.

## Source excerpt

Build an AI voice assistant that answers phone calls, using Twilio Voice and Media Streams, Rime's Prism speech-to-speech model, and Node.js.