Lecture Wave et TTS

Petrah Messages postés 1 Date d'inscription dimanche 8 mai 2005 Statut Membre Dernière intervention 17 mai 2005 - 17 mai 2005 à 23:38
Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 - 18 mai 2005 à 00:23
Salut! j'aurai un prob avec mon code...

Comment savoir kan finit la lecture du fichier wave pr pouvoir lire et exécuter un TextToSpeech, sans ke les deux ne se croisent?
Le fait est ke ds mon code, la phrase est prononcée avant ke mon fichier wave n'ait été lu jusqu'à la fin... Comment faire?

Merci d'avance....
Petra
> [mailto:petrahaddad@gmail.com petrahaddad@gmail.com]

1 réponse

Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 34
18 mai 2005 à 00:23
Private Const SND_ASYNC = &H1 ' play asynchronously

Private Const SND_SYNC = &H0 ' play synchronously (default)



Private Declare Function sndPlaySound Lib "winmm.dll" Alias
"sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long)
As Long



sndPlaySound filename, SND_SYNC

Daniel
0
Rejoignez-nous