Language selection #24
-
Hi, I just make speed tests and comparing pywhispercpp and "normal" whisper.Speedup is amazing!!Thx for that:) How I can choose the language on initialize stage? Any answer will be great :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @aleksandermajos, If I understand your question correctly, you are asking about how to change the language during initialization ? from pywhispercpp.model import Model
model = Model('large', language="de") # I think "de" for german in your case
segments = model.transcribe('file.mp3')
for segment in segments:
print(segment.text) This will output the segments in the target language, and you need of course to use the |
Beta Was this translation helpful? Give feedback.
Hi @aleksandermajos,
You are welcome, 'Glad you found
pywhispercpp
useful :)If I understand your question correctly, you are asking about how to change the language during initialization ?
You can change it as follows:
This will output the segments in the target language, and you need of course to use the
large
model.Let me know if that answers your question ?