Files
Mohamed Boudra ce4b0d54c7 chore: reformat codebase with oxfmt
Apply prettier-compatible formatting across the repo to match the
incoming oxfmt configuration. Mechanical reformat only — no logic
changes. Covers YAML quote normalization, package.json key sorting,
Markdown/TOML formatting, and minor TS whitespace tweaks.
2026-04-23 21:44:48 +07:00

1.0 KiB

Expo Two-Way-Audio Using Flow API

This example showcases the basic functions of the expo-two-way-audio module:

  • Capture input raw pcm data
  • Play raw pcm data (from a hardcoded base64 string)
  • Display volume level for both input and output
  • In iOS: show/set microphone mode while recording.

Requirements

  • Node.js
  • Expo CLI
  • iOS and/or Android dev environment setup.

Run the app

In the examples/basic-usage directory:

  1. Install dependencies:

    npm install
    
  2. Run the app:

    # Run iOS
    npm run ios
    
    # Run Android
    npm run android
    

Notes

Some audio features of expo-two-way-audio like Acoustic Echo Cancelling, noise reduction or microphone modes (iOS) don't work on simulator. Run the example on a real device to test these features.

# iOS
npx expo run:ios --device --configuration Release

# Android
npx expo run:android --device --variant release