Вверх ↑
Главный модератор
Ответов: 2997
Рейтинг: 395
#1: 2019-01-31 14:38:19 ЛС | профиль | цитата
egorhay писал(а):
пишут что это легко сделать через C#.

Проект Core базового пакета HiAsm.NET:
Add(hcTplForm,2953706,63,105)
{
StartPosition=4
link(onCreate,5:doInline,[])
}
Add(hcTplButton,2,161,105)
{
Left=16
Top=48
Caption="Speech"
link(onClick,6:doInline,[])
}
Add(hcTplEdit,3,217,56)
{
Left=77
Top=23
Width=192
Text="ahoj"
}
Add(hcTplComboBox,4,161,56)
{
Left=77
Top=49
Width=192
Point(doSelectedIndex)
Point(Items)
Point(SelectedItem)
}
Add(hcInline,5,112,105)
{
Code=#58:// Сигнатура метода: public object doInline(object[] args)|0:|65:var items = (args[0] as TData).data as ComboBox.ObjectCollection;|0:|46:SpeechSynthesizer s = new SpeechSynthesizer();|0:|52:foreach (InstalledVoice v in s.GetInstalledVoices())|32: items.Add(v.VoiceInfo.Name);|0:|9:return 0;|
Arguments=1
ReferencedAssemblies=#10:System.dll|24:System.Windows.Forms.dll|100:c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Speech.dll|21:C:\HiAsm.NET\MSDK.dll|
Imports=#6:System|20:System.Windows.Forms|23:System.Speech.Synthesis|5:HiAsm|
DebugInfo=0
WarningLevel=0
link(onResult,4:doSelectedIndex,[(152,111)(152,69)])
link(onError,11:doWork2,[(152,118)(152,146)])
link(Arg1,4:Items,[(118,97)(167,97)])
}
Add(hcInline,6,210,105)
{
Code=#58:// Сигнатура метода: public object doInline(object[] args)|0:|46:SpeechSynthesizer s = new SpeechSynthesizer();|49:string voicename = (args[0] as TData).toStr();|49:string text = (args[1] as TData).toStr();|25:s.SelectVoice(voicename);|14:s.Speak(text);|0:|12:return null;|
Arguments=2
ReferencedAssemblies=#10:System.dll|100:c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Speech.dll|21:C:\HiAsm.NET\MSDK.dll|
Imports=#6:System|23:System.Speech.Synthesis|5:HiAsm|
DebugInfo=0
WarningLevel=0
link(onError,11:doWork1,[(256,118)])
link(Arg1,4:SelectedItem,[(216,98)(174,98)])
link(Arg2,3:Text,[])
}
Add(hcMessage,7,273,140)
{
Caption="Error"
Icon=1
}
Add(HubEx,11,252,140)
{
link(onEvent,7:doMessage,[])
}
карма: 6
Дорогу осилит идущий. Install/Update HiAsm.NET
0
Редактировалось 1 раз(а), последний 2019-01-31 17:11:38