Closed donand closed 2 years ago
Hi Andrea, this is the expected behavior, see https://github.com/bootphon/phonemizer#python-usage (or the docstring in phonemize()
. Do the same with that, you should see a difference :)
from phonemizer import phonemize
import time
text = ["Some random sentence to transcribe."] * 100
start = time.time()
phonemize(text, language='en-us', backend='espeak', preserve_punctuation=True, with_stress=True, language_switch='remove-flags')
print(f'Time: {time.time() - start:.2f} s')
Describe the bug As I read in the release 3.0, now the library should be much faster with the speak backend. I compared the times between version 2.2.2 and 3.0 and the version 2.2.2 is faster.
Release 3.0: https://github.com/bootphon/phonemizer/releases/tag/v3.0
Phonemizer version Old
New
System
To reproduce
Expected behavior Version 3.0 should be faster than version 2.2.2