Главная страница
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.016 c
1-37009
Step[B.M.]
2003-01-01 14:25
2003.01.13
Как посимвольно читая char отреагировать на 0 символ


1-37035
sergl
2003-01-02 15:04
2003.01.13
Создание e-mail и помещение его в Исходяшие Microsoft Outlook2000


1-37134
jen_bond
2002-12-29 09:51
2003.01.13
Узнать номер компанента


1-37091
u96
2003-01-03 16:02
2003.01.13
утечка памяти, помогите, пожалуйста


1-37194
DJ_Sedoy
2002-12-28 00:28
2003.01.13
Обработчик событий