An open API service indexing awesome lists of open source software.

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

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.