Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.01.13;
Скачать: CL | DM;

Вниз

Помогите разобраться с MSAgent   Найти похожие ветки 

 
maxim2 ©   (2002-12-31 08:36) [0]

Привет всем!
Не могу достучаться до его свойства LanguageID в справке по нему пишут так

agent.Characters("CharacterID").LanguageID [ = LanguageID]

пробовал но нифига невыходит загружая я этого агента так

AGENT:="peedy";
AGENTPATH:="f:\winnt\msagent\chars\peedy.acs";
Agent1.Characters.Load(Agent,AgentPath);
Character:=Agent1.Characters.Character(Agent);
Character.Show(False);

может я чего нибудь не так делаю, подскажите.


 
Digitman ©   (2002-12-31 12:38) [1]

To enable speech input support in your application, define a Command object and set its Voice property. Agent will automatically load speech services, so that when the user presses the Listening key or you call Listen, the speech recognition engine will be loaded. By default the character’s LanguageID will determine which engine is loaded. Agent attempts to load the first engine that the Microsoft Speech API (SAPI) returns as matching this language. Use SRModeID if you want to load a specific engine.

To enable text-to-speech output, use the Speak method. Agent will automatically attempt to load an engine that matches the character’s LanguageID. If the character’s definition includes a specific TTS engine mode ID and that engine is available and matches the character’s LanguageID, Agent loads that engine for the character. If it is not, it loads the first TTS engine that SAPI returns as matching the character’s language setting. You can also use the TTSModeID to load a specific engine.

Что здесь непонятного ? Если у тебя не установлен TTS-движок, соответствующий указанному LanguageId, то будет загружен первый найденный движок, либо (если ни один не найден) Агент будет "немой")


 
Digitman ©   (2002-12-31 12:42) [2]

Или ты просто скомпилировать не можешь ?
Так ведь справка-то для VB приводится)

В Делфи будет так :

AGENT:="peedy";
AGENTPATH:="f:\winnt\msagent\chars\peedy.acs";
Agent1.Characters.Load(Agent,AgentPath);
Character:=Agent1.Characters.Character(Agent);
Character.LanguageId := .....
Character.Show(False);


 
ruf   (2003-01-01 16:33) [3]

примеры программирования агентов - www.mycomp.com.ua



Страницы: 1 вся ветка

Текущий архив: 2003.01.13;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.018 c
1-37073
Gamar
2003-01-03 12:35
2003.01.13
Имя переменой в другой переменной


14-37319
KaPaT
2002-12-23 21:10
2003.01.13
Помогите с инфой пожалуйста....


6-37264
OlegL
2002-11-09 11:44
2003.01.13
Как заморозить прогу до приёма ответа?


7-37401
Keplin Sergey
2002-11-01 20:10
2003.01.13
Читать CD-ROM напрямую...


4-37444
@Ujin
2002-11-25 16:53
2003.01.13
Как получить список экспорта библиотеки?