Главная страница
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.015 c
14-37362
Aristarh
2002-12-24 21:20
2003.01.13
Help, please! Как повторно вызвать окно авторизации


1-37098
DDDeN
2003-01-04 09:45
2003.01.13
Что такое CRC?


3-36992
Sheeva
2002-12-19 09:23
2003.01.13
1нф > 2нф > 3нф База на Нужна помощь!


6-37258
TCrash
2002-11-14 12:10
2003.01.13
Список серверов банерных сетей


1-37153
Ops
2002-12-29 16:52
2003.01.13
Текст в Memo разным цветом