Try it
Talk, then look under the hood
Open the push-to-talk demo in two browsers, run it on your own machine, or build real API calls here.
The push-to-talk demo
Hold-to-talk in the browser, with invites and babel-fish.
On the pre-production server
Start a call and you get a pairing code to share; the other person types it on a phone or opens your link. An invite link (it ends in #invite=…) works too. Open it in two browsers or on two phones, pick a name and the language you listen in, then hold the button and talk.
Without a code or a link, the page offers Start a call and Join with a code. You can also start one on the home page.
What you will see
- Your browser makes its own device key; it never leaves the browser.
- Hold to talk: the others hear you as you speak. Let go, and the floor is free.
- Speak, or type what you said; each listener gets it in their own language and hears it read aloud.
- No microphone? Tick "Test tone" and the browser sends a tone instead.
Run it on your own machine
Node 22 and pnpm. Nothing here is a real secret: the demo makes a development key and an admin token for the run and throws them away.
pnpm install
pnpm --filter @tin-phone/server-node build
node packages/server-node/scripts/ptt-demo.mjs
# prints an invite link for http://127.0.0.1:8788; open it in two browsers
# options: --port 8788 --host 0.0.0.0 (phones on the same network) --xtalk <x-talk URL>
Without --xtalk, a local stand-in answers each translation as [lang] words, so babel-fish can be seen without x-talk. In one browser, add ?as=bob to the address to be a second person in another tab.
API playground
Pick a call and fill in the blanks; copy the command. Calls that need no token can be sent from here.
Command
Choose a call.
The token stays a placeholder, $TIN_PHONE_TOKEN: set it in your own shell. This page never asks for it.
Answer
Nothing sent yet.
Verify a receipt chain
The conformance vectors, verified with WebCrypto in your browser.