- arecord:
sudo apt-get install alsa-utils
- lodash:
npm install lodash
const Microphone = require('./path/to/microphone');
const mic = new Microphone();
mic.pipe(someWritable);
setTimeout(() => mic.stop(), 5000);
const querystring = require('querystring'); | |
const ws = require("ws"); | |
const qs = querystring.stringify({{ | |
language: 'fr', | |
sampleRate: sampleRate, // WARN: must match recording configuration | |
format: 's16le', // WARN: must match recording configuration | |
// expectedPhrases: ['can be a word or a short sentence'], | |
}}) | |
const socket = new ws.WebSocket(`wss://:${{process.env.API_TOKEN}}@stream.deeptranscript.com/?${{qs}}`); | |
socket.on('open', () => {{ |
import requests | |
API_TOKEN = "<YOUR-API-TOKEN>" # see https://www.callity.fr/configuration/integrations | |
resp =requests.post( | |
url="https://www.callity.fr/api/speech_source_reviews/", | |
headers={ | |
'Authorization': f'Bearer {API_TOKEN}', | |
}, | |
json=dict( | |
language="fr", # or "en" | |
recording='<SOME-URL>', |
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<configSections> | |
<section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow" /> | |
</configSections> | |
<specFlow> | |
<!-- For additional details on SpecFlow configuration options see http://go.specflow.org/doc-config --> | |
<!-- use unit test provider SpecRun+NUnit or SpecRun+MsTest for being able to execute the tests with SpecRun and another provider --> | |
<unitTestProvider name="NUnit" /> | |
</specFlow> |
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<configSections> | |
<section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow"/> | |
</configSections> | |
<specFlow> | |
<unitTestProvider name="NUnit" /> | |
<language feature="en-US"/> |