Главная страница
    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.44 MB
Время: 0.009 c
1-37000
3asys
2002-12-28 11:14
2003.01.13
Вывод на печать из TRichEdit с первой страницы


14-37359
angelant
2002-12-25 06:56
2003.01.13
Нулевый диск возраждаясь дает.... Чудеса... И ...


1-37197
Andy BitOff
2002-12-30 22:18
2003.01.13
ScrollBar


3-36981
Vick
2002-12-18 14:42
2003.01.13
в TDBGridEh событие скроллинга


1-37122
Бук
2003-01-04 09:38
2003.01.13
mwEdit





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский