Comments (5)
I don't know, please, contact Wit
from voicy.
So how does your program work? If you use API?
from voicy.
@shahinesi same as anyone's
from voicy.
@shahinesi same as anyone's
Amazing!
from voicy.
import requests
import json
from Recorder import record_audio, read_audio
# Wit speech API endpoint
API_ENDPOINT = 'https://api.wit.ai/speech?v=20191105'
# Wit.ai api access token
wit_access_token = 'E64XTTGVVCFWL4HGGEOU3I4TJ7CHFIHL'
def RecognizeSpeech(AUDIO_FILENAME, num_seconds = 5):
# reading audio
audio = read_audio(AUDIO_FILENAME)
# defining headers for HTTP request
headers = {'authorization': 'Bearer ' + wit_access_token,
'Content-Type': 'audio/raw;encoding=signed-integer;bits=16;rate=16000;endian=little'}
# making an HTTP post request
resp = requests.post(API_ENDPOINT, headers = headers,
data = audio)
# converting response content to JSON format
data = json.loads(resp.content)
# get text from data
#text = data['_text']
# return the text
return data
This is my code for python!
from voicy.
Related Issues (20)
- Adding Mozilla DeepSpeech among the service options HOT 2
- Not responding to bot's voice messages in group chats HOT 1
- Add opus audio format HOT 5
- add hebrew support please HOT 1
- inline mode HOT 1
- Transcribe audios only when requested HOT 7
- Google Speech Enhanced models HOT 1
- option to prefix messages by the name+@ of whoever posted the audio HOT 1
- send message when text is ready for better integration with watch and bands HOT 1
- Please no politics on messages HOT 1
- Add support for external m4a files HOT 1
- Remove 'putin and his cronies...' text from captions HOT 4
- Voice recognition works for personal chat but not in groups HOT 6
- Worker started, but bot not answering HOT 7
- Yarn Start not found HOT 1
- ISSUE: this codebase is possesed HOT 2
- TypeError: Cannot read property 'send' of undefined HOT 1
- Not showing full message
- Clarify and fix per-chat donation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from voicy.