Replies: 3 comments
-
>>> reuben |
Beta Was this translation helpful? Give feedback.
-
>>> eggonlea |
Beta Was this translation helpful? Give feedback.
-
>>> lissyx |
Beta Was this translation helpful? Give feedback.
-
>>> eggonlea
[April 29, 2019, 8:42pm]
If I'm going to convert multiple WAV files simultaneously, there're
different ways to do it: multi-process and multi-thread.
The questions is:
1. Is DS native client thread-safe? E.g. Can I initialize (with LM)
once and then create multiple threads to decode multiple streams? Is
there anything I should lock among threads?
2. If it's not thread-safe, can I initialize once and then fork
multiple processes to decode multiple streams?
If both answers are negative, every new forked process has to perform
the redudant initialization before decoding a new stream. Thanks!
[This is an archived TTS discussion thread from discourse.mozilla.org/t/is-deepspeech-nativeclient-thread-safe]
Beta Was this translation helpful? Give feedback.
All reactions