Audio
Stream the device's audio output to your browser. This lets you hear in-app sounds, media playback, and the TalkBack screen reader during a session.
Enabling audio
On the App Page
https://appetize.io/app/<buildId|publicKey>?device=pixel7&audio=trueWith the JavaScript SDK
const client = await window.appetize.getClient("#appetize")
const session = await client.startSession({
device: "pixel7",
audio: true,
})Capturing audio frames
session.on("audio", ({ buffer, codec, duration }) => {
// `buffer` contains the AAC audio frame
// `codec` is "aac"
// `duration` is the frame duration in seconds
})Live sample
Last updated