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.
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.