WSRN communicate with a new browser instance over puppeteer core module, it uses default microphone settings for the input.
- Windows
- Linux
- MacOS (not tested)
const Wsrn = require('wsrn')
const client = new Wsrn({
chromePath: 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe',
continuous: true,
})
client.on('ready', () => {
client.record();
});
client.on('data', (transcript) => {
console.log(transcript);
});
error
- emitted when error occurstart
- when recording has startedend
- when recording has ended
- Windows -
C:/Program Files (x86)/Google/Chrome/Application/chrome.exe
- Linux -
/usr/bin/google-chrome-stable
- MacOS -
/Applications/Google Chrome.app/Contents/MacOS/Google Chrome