1

Тема: Microsoft.Speech.Synthesis

Я хочу написати просту програму для спілкування.Я вже навчив її слухати через бібліотеку Microsoft.Speech.Recognition.З частиною де програма повинна говорити виникла проблема.Я створив новий проект з частиною коду де є сама помилка.Допоможіть розібратися

Post's attachments

1.png 121.84 kb, 57 downloads since 2019-12-05 

2

Re: Microsoft.Speech.Synthesis

https://replace.org.ua/uploads/images/7534/0272b606de59aec17594688c303456ab.png
Ось вигляд помилки

3 Востаннє редагувалося truesupport (05.12.2019 21:23:40)

Re: Microsoft.Speech.Synthesis

Який геній замість того щоб повертати пусту колекцію повертає null я хз. То якась недоліба.

Взагалі судячи з того що пишуть тут - https://docs.microsoft.com/en-us/previo … fice.14%29 В самому кінці а саме.

The Speech Platform Runtime 11 and the Speech Platform SDK 11 do not include Runtime Languages for speech recognition or for speech synthesis (TTS or text-to-speech). You must install them separately. A Runtime Language includes the language model, acoustic model, and other data necessary to provision a speech engine to perform speech recognition or TTS in a particular language. There are separate Runtime Languages for speech recognition or speech synthesis. The version of Runtime Languages that you download (for example, version 11.0) must match the version of the Speech Platform Runtime that you have installed. You can download Runtime Languages using this link.

Треба ще скачати якісь додаткові компоненти тут - https://www.microsoft.com/en-us/downloa … x?id=27224

Хоча насправді я попробував відтворити вашу помилку в себе і в мене такий код працює успішно. Правда це не трошки оновлена ліба бо в 10 вони її трошки поремонтували напевно.

SpeechSynthesizer s = new SpeechSynthesizer();
s.Speak("Hello guys!");

4

Re: Microsoft.Speech.Synthesis

Воно тільки під шарпом працює?

5

Re: Microsoft.Speech.Synthesis

https://www.microsoft.com/en-ie/downloa … x?id=27225

The Microsoft Speech Platform Runtime contains both a managed (.NET) and native (COM) API for developing Server based speech applications.