Главная страница
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.028 c
6-37238
Mr. Moon
2002-11-12 14:57
2003.01.13
Сообщение по новелу


4-37434
SYNthetic
2002-11-21 17:45
2003.01.13
Обновление устройств Plug&Paly


14-37362
Aristarh
2002-12-24 21:20
2003.01.13
Help, please! Как повторно вызвать окно авторизации


8-37227
Dick
2002-09-24 19:46
2003.01.13
Алгоритм


1-37093
Smok_er
2003-01-03 00:23
2003.01.13
DockControl и его реализация