https://github.com/shauryafulfagar/stt-example-rn-expo
An example of how to implement STT in ReactNative with Expo and OpenAI's Whisper
https://github.com/shauryafulfagar/stt-example-rn-expo
expo flask openai-whisper react-native speech-to-text
Last synced: 6 months ago
JSON representation
An example of how to implement STT in ReactNative with Expo and OpenAI's Whisper
- Host: GitHub
- URL: https://github.com/shauryafulfagar/stt-example-rn-expo
- Owner: ShauryaFulfagar
- License: mit
- Created: 2024-10-24T15:06:52.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-12-09T16:23:55.000Z (10 months ago)
- Last Synced: 2025-04-07T19:52:42.175Z (6 months ago)
- Topics: expo, flask, openai-whisper, react-native, speech-to-text
- Language: Python
- Homepage:
- Size: 191 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Speech-to-Text Implementation in React Native (Expo)
## Overview
Implement speech-to-text functionality in a React Native (Expo) application using OpenAI Whisper and Flask for creating the API for the backend.
## Technologies Used
- **Frameworks/Libraries**:
- `React Native (Expo)`
- `Flask`
- `expo-av`
- **Tools**:
- `OpenAI Whisper`
- `Ngrok` (For temporarily exposing port 5000 for testing)
- `ffmpeg` (Installed separately using chocolatey)## Installation of Dependencies
To install all Node.js dependencies and run the app, run:
```bash
npm install
```
Under `./stt-api` to create a virtual environment, install dependencies and run the API backend, run:
```bash
cd stt-api
``````bash
python -m venv
``````bash
source /bin/activate
``````bash
pip install -r requirements.txt
``````bash
python app-whisper.py
```
(Optional)
If you want to expose port 5000 for testing using `ngrok````bash
ngrok http 5000
```
## License
This project is licensed under the MIT License. You are free to use, modify, and distribute this code for personal, commercial, and open-source purposes without the need for attribution.
See the [LICENSE](/LICENSE) file for more details.