https://github.com/nerdingitout/video-stt
This GitHut repo is for a video transcriber demo
https://github.com/nerdingitout/video-stt
Last synced: about 1 year ago
JSON representation
This GitHut repo is for a video transcriber demo
- Host: GitHub
- URL: https://github.com/nerdingitout/video-stt
- Owner: nerdingitout
- Created: 2021-04-10T10:01:07.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-11T12:16:03.000Z (about 5 years ago)
- Last Synced: 2025-05-14T10:32:08.735Z (about 1 year ago)
- Language: Python
- Size: 285 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# video-stt
This GitHut repo is for a video transcriber demo
## Prerequisites
- Create a free IBM Cloud account: https://ibm.biz/ArabAISummit
- Create a CloudantDB service on IBM Cloud
- Create Watson Speech to Text service on IBM Cloud
- Create a Node-RED starter application on IBM Cloud
## Explore Watson Speech to Text API
For this section, you will be exploring the Watson Speech to Text API from the API documentation.
#### Audio Formats
audio/alaw, audio/basic, audio/flac, audio/g729, audio/l16, audio/mp3, audio/mpeg, audio/mulaw, audio/ogg, audio/ogg;codecs=opus, audio/ogg;codecs=vorbis, audio/wav, audio/webm, audio/webm;codecs=opus, audio/webm;codecs=vorbis
#### Get list of Models
```
curl -X GET -u "apikey:{apikey}" "{url}/v1/models/en-US_BroadbandModel"
```
#### Sample Request
(download sample file audio-file2.flac or replace the type and file name with your own files)
```
curl -X POST -u "apikey:{apikey}" --header "Content-Type: audio/flac" --data-binary @audio-file2.flac "{url}/v1/recognize?word_alternatives_threshold=0.9&keywords=colorado%2Ctornado%2Ctornadoes&keywords_threshold=0.5"
```
## Add environment variables
Create a ```config.py``` file and add the following lines of code, replace with your own credentials.
```
STT_API_KEY="GitHub repository. This is another example of building video transcriber.
