https://github.com/akscf/mod_openai_asr
Provides an OpenAI Speech-To-Text features for the Freeswitch.
https://github.com/akscf/mod_openai_asr
freeswitch openai text-to-speech
Last synced: 11 months ago
JSON representation
Provides an OpenAI Speech-To-Text features for the Freeswitch.
- Host: GitHub
- URL: https://github.com/akscf/mod_openai_asr
- Owner: akscf
- Created: 2024-01-12T02:47:08.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-17T16:37:03.000Z (over 1 year ago)
- Last Synced: 2024-10-20T00:32:10.576Z (over 1 year ago)
- Topics: freeswitch, openai, text-to-speech
- Language: C
- Homepage:
- Size: 24.4 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
OpenAI Speech-To-Text service for the Freeswitch.
Features: vad, flexible adjustments.
Available through: asr_interface, commnad api
If you have troubles with building this module, pay attention to this issue and the comment,
maybe you faced the same thing.
### Dialplan example
```XML
```
### mod_quickjs
```javascript
session.ttsEngine= 'openai'; // requires: mod_openai_tts
session.asrEngine= 'openai';
var txt = session.sayAndDetectSpeech('Hello, how can I help you?', 10);
consoleLog('info', "TEXT: " + txt);
```
### Command line
```
freeswitch> openai_asr_transcript /tmp/test.[wav|mp3] [key=altKey mode=altModel]
+OK: How old is the Brooklyn Bridge
```