OpenInterpreter / 01

The #1 open-source voice interface for desktop, mobile, and ESP32 chips.
https://01.openinterpreter.com/
GNU Affero General Public License v3.0
4.92k stars 517 forks source link

fix audio layering in react-native app #262

Closed benxu3 closed 5 months ago

benxu3 commented 5 months ago

Motivation This PR fixes the audio layering in the React-Native App that currently occurs relatively consistently for audio playback longer than 4 sentences. Simplifies a lot of the state complexity that existed previously.

Changes Refactors the sound and audioQueue states with useRef() for persistent, mutable values that are tracked across components accurately. Audio playback logic is changed accordingly.