Adding STT services
Can use the Pr Added support for AssemblyAI #70 as an example.
Generally adding a new STT service to autoEdit will entail:
1. Credentials part 1
Adding module to handle credentilas electron/assemblyai_keys.js
add support for keys in db.js electron/db.js
expose getters and setters in electron/index.html
2. credentials part 2
Pass data for settings view through the router lib/app/router.js
add credentials field in settings template settings_template.html.ejs
integrate with settings view lib/app/views/settings_view.js
3. Transcription form
Add option in transcription form template /transcription_form_template.html.ejs
optional list of languages, if model supports multiple language models.
Integrate with transcription form view lib/app/views/transcription_form_view.js
4. Backend
Add backend option for that stt service in transcriber module lib/interactive_transcription_generator/transcriber/index.js
The module to call the STT API and convert to json might more or less involved depending on the STT SDK provided by the STT service.
Then a module adapter to convert the STT API output into autoEdit Json lib/interactive_transcription_generator/transcriber/assemblyai/convert_to_json.js
sometimes to build the adapter, it's easier to get some sample json from the STT API Service, or from a sample response and use that to create the parser. eg lib/interactive_transcription_generator/transcriber/assemblyai/sample-assemblyai.json
A bit involved, but for now that's it, npm start
, to test it out.
Last updated