https://github.com/raci0n/deepspeech-arm
Its a deepspeech docker container for arm.
https://github.com/raci0n/deepspeech-arm
arm armv7 container deepspeech docker mozilla-deepspeech raspberry raspberry-pi raspberry-pi-3 raspberrypi raspbian s2t speech-to-text
Last synced: 6 months ago
JSON representation
Its a deepspeech docker container for arm.
- Host: GitHub
- URL: https://github.com/raci0n/deepspeech-arm
- Owner: raci0n
- Created: 2023-05-11T19:38:05.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-14T19:40:13.000Z (almost 3 years ago)
- Last Synced: 2024-12-29T09:42:33.722Z (over 1 year ago)
- Topics: arm, armv7, container, deepspeech, docker, mozilla-deepspeech, raspberry, raspberry-pi, raspberry-pi-3, raspberrypi, raspbian, s2t, speech-to-text
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# deepspeech-arm
Its a deepspeech docker container for arm.
# Installation
Install Raspberry Pi OS [Debian version: **10** (buster), 21.02.2023] on your Raspberry Pi.
It must be an armv7! Check the version with `uname -a`. Raspberry Pi OS 11 is already on armv8!
Install git:
```
sudo apt install git wget -y
git clone https://github.com/raci0n/deepspeech-arm.git
cd deepspeech-arm
```
Get your models:
```
wget -O ./model/deepspeech.scorer https://github.com/mozilla/DeepSpeech/releases/download/v0.9.3/deepspeech-0.9.3-models.scorer
wget -O ./model/deepspeech.tflite https://github.com/mozilla/DeepSpeech/releases/download/v0.9.3/deepspeech-0.9.3-models.tflite
```
Create the docker container:
```
sudo chmod +x ./install.sh
./install.sh
```
Start the docker container:
```
sudo chmod +x ./start.sh
```
The Docker container is now available via `http://localhost:8082`.
# Example
```
import requests
url = 'http://localhost:8082/stt'
fname = 'file.wav'
# Open the wav-file
with open(fname, 'rb') as f:
data = f.read() # read
# http request to 'http://localhost:8082/stt'
req = requests.post(url, data=data)
print(req.text) # print the result
```