Spaces:
Sleeping
Sleeping
from phonemizer import phonemize | |
# Your transcription text | |
transcription = "'''I need some paracetamol for my headache. '''" | |
# Convert to IPA | |
ipa_transcription = phonemize( | |
transcription, | |
language='en-us', # Specify the language | |
backend='espeak' # Specify the phonemization backend | |
) | |
print(ipa_transcription) | |