Coverage for src/botadi/mokadi/mokadi_speak.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

2 statements  

1""" 

2@file 

3@brief Synthetize voice. 

4""" 

5 

6 

7def speak(text, lang="fr-FR", voice="", filename=None): 

8 """ 

9 Text to speech. 

10 

11 @param text text to speak 

12 @param lang language 

13 @param voice voice name 

14 @param filename filename (to save the results) 

15 

16 See `SpeechSynthesizer <https://msdn.microsoft.com/fr-fr/library/system.speech.synthesis.speechsynthesizer(v=vs.110).aspx>`_. 

17 """ 

18 raise NotImplementedError("Implementation was removed.") 

19 # from ensae_teaching_cs.cspython import vocal_synthesis 

20 # vocal_synthesis(text, lang=lang, voice=voice, filename=filename)