<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>14 Jul 2020 14:27:15 Z</lastBuildDate><pubDate>1 May 2020 11:37:19 Z</pubDate><description>Bonjour à tous&#13;
&#13;
J'essaye d'utiliser l'assembly Microsoft.CognitiveServices.Speech sans Windev et je rencontre un problème :&#13;
&#13;
1/ Je référence l'assemblage dans mon projet : OK&#13;
&#13;
&#13;
https://hostimage.windev.io/images/Capture_6e244c28307b8f6c8e49b3b4b76e0f88.JPG&#13;
&#13;
2/ J'initialise un objet SpeechConfig, un objet SpeechSynthetizer et un objjet SpeechRecognizer : OK&#13;
&#13;
[code:wl]&#13;
gpclConfig est un SpeechConfig dynamique&#13;
&#13;
gpclConfig = SpeechConfig::FromSubscription("MaClé","francecentral")&#13;
gpclConfig.SpeechRecognitionLanguage = "fr-FR"&#13;
&#13;
gclSynthetizer est un SpeechSynthesizer(gpclConfig)&#13;
&#13;
gclRecognizer est un SpeechRecognizer(gpclConfig)&#13;
&#13;
[/code]&#13;
&#13;
3/ Lancement d'une reconnaissance et lecture de la réponse : KO &#13;
&#13;
[code:wl]&#13;
pclRes est un SpeechRecognitionResult dynamique = clRecognizer.RecognizeOnceAsync()&#13;
Trace(pclRes.Reason)&#13;
[/code]&#13;
&#13;
J'ai une erreur en exécution sur le Trace :&#13;
&#13;
https://hostimage.windev.io/images/Capture_8fbd6b225de2976f087741707829bd28.JPG&#13;
&#13;
J'ai bien compris que la fonction RecognizeOnceAsync() ne renvoie pas directement un objet SpeechRecognitionResult, comme le montre son prototype :&#13;
&#13;
&#13;
https://hostimage.windev.io/images/Capture_6a712ea15f4ecbffb969d6d4ffe33953.JPG&#13;
Comment alors récupérer l'info, comment travailler avec ce qui semble être une classe générique ?&#13;
&#13;
Merci pour votre aide</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/239194-utilisation-microsoft-cognitiveservices-speech/read.awp</link><title>Utilisation de Microsoft.CognitiveServices.Speech</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>Jean.VLD</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/239194-utilisation-microsoft-cognitiveservices-speech-241146/read.awp</comments><pubDate>14 Jul 2020 14:27:15 Z</pubDate><description>bonjour&#13;
j'ai intégré l'assemblage System.Speech et je crée une variable de type SpeechSynthesizer.&#13;
Cependant, lorsque le logic…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/239194-utilisation-microsoft-cognitiveservices-speech-241146/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/239194-utilisation-microsoft-cognitiveservices-speech-241146/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/239194-utilisation-microsoft-cognitiveservices-speech/read.awp">Utilisation de Microsoft.CognitiveServices.Speech</source><title>Re: Utilisation de Microsoft.CognitiveServices.Speech</title></item><item><author>Popoy</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/239194-utilisation-microsoft-cognitiveservices-speech-239213/read.awp</comments><pubDate>2 May 2020 09:09:37 Z</pubDate><description>Je m'y connais mal en .net, cependant je remarque que l'erreur indique le fait de ne pas trouver le langage neutral alors que tu…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/239194-utilisation-microsoft-cognitiveservices-speech-239213/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/239194-utilisation-microsoft-cognitiveservices-speech-239213/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/239194-utilisation-microsoft-cognitiveservices-speech/read.awp">Utilisation de Microsoft.CognitiveServices.Speech</source><title>Re: Utilisation de Microsoft.CognitiveServices.Speech</title></item></channel></rss>
