alphacep / vosk-api

Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Apache License 2.0
7.84k stars 1.09k forks source link

Numbers in letters #1402

Closed cslop3r closed 1 year ago

cslop3r commented 1 year ago

Hi, is there a way to make numbers in numerals instead of letters? For instance: "24" : "twenty four" => "24" "24" : "vingt quatre" => "24"

nshmyrev commented 1 year ago

https://github.com/allo-media/text2num

nshmyrev commented 1 year ago

Same as #627

cslop3r commented 1 year ago

Thanks for answering!

Is there a way to edit the text before it is written on a subtitles file? Like my config is one word per line and if I edit the numbers of the subtitles file, it will do something like that: twenty => 20 four => 4 Insted of: twenty four => 24

nshmyrev commented 1 year ago

Sure, you need to write a simple code to call a library linked above.

cslop3r commented 1 year ago

Thanks again for answering!

What do you mean?