BessemerAlliance / speechmatics

Speechmatics API for Node.js
https://speechmatics.com/api-details
MIT License
3 stars 7 forks source link

Options for language model and speaker diarization #5

Closed pietrop closed 6 years ago

pietrop commented 6 years ago

As raised in this https://github.com/BessemerAlliance/speechmatics/issues/4 both model and speaker diarization are hardcoded, I have a use case for which I need to be able to translate in language other the US english, so added language model as an option and while I was at it I also added speaker diarization as optional.

However I also left en (Global English) as default for language model, and speaker diarization default tofalse if those options are not passed, so that this change can be backward compatible if this module is used elsewhere.

Let me know if this works you.