79672738

Date: 2025-06-19 23:50:08
Score: 0.5
Natty:
Report link

One can easily achieve this using @speechmatics/expo-two-way-audio and buffer

import { Buffer } from "buffer";

const audioChunk = "SOME PCM DATA BASE64 ENCODED HERE"
const buffer = Buffer.from(audioChunk, "base64");
const pcmData = new Uint8Array(buffer);

playPCMData(pcmData);

Currently, only plays 16kHz sampled data (1 channel 16 bit at 16kHz)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: sugaith