require "import"
import "android.widget.*"
InputLayout={
LinearLayout;
orientation="vertical";
{
EditText;
id="edit";
layout_width="99%w";
hint="在这里输入语速",
InputType="number"
};
};
dlg=LuaDialog()
.setTitle("解说语速")
.setView(loadlayout(InputLayout))
.setButton3("讯飞语速",function(v)
if edit.text==""
service.speak("你还没输入语速呢")
task(1300,function()
v.show()
end)
else
service.click({
{"%语音设置$50","讯飞语音设置>60$30","语音合成语速>60$30","<0|%向上翻页>50$50","?"..edit.text.."*|%向下翻页>50$60","%延时$100",{{"返回$60","返回>60$30"},{"取消>60$300","返回<2>60$30","%延时","%朗读/错误,语速未改变,你只能输入零到一百之间的数值"}}}
})
end
end)
.setButton2("系统TTS语速",function(v)
if edit.text==""
service.speak("你还没输入语速呢")
task(1300,function()
v.show()
end)
else
service.click({
{"%语音设置$50","系统TTS服务设置>60$30","语音合成语速>60$30","<0|%向上翻页>50$50","?"..edit.text.."*|%向下翻页>50$60","%延时$100",{{"返回$60","返回>60$30"},{"取消>60$300","返回<2>60$30","%延时","%朗读/错误,语速未改变,你只能输入零到一百之间的数值。"}}}})
end
end)
.setButton("云知声语速",function(v)
if edit.text==""
service.speak("你还没输入语速呢")
task(1300,function()
v.show()
end)
else
service.click({
{"%语音设置$50","云知声语音设置>60$30","语音合成语速>60$30","<0|%向上翻页>50$50","?"..edit.text.."*|%向下翻页>50$60","%延时$100",{{"返回$60","返回>60$30"},{"取消>60$300","返回<2>60$30","%延时","%朗读/错误,语速未改变,你只能输入零到一百之间的数值。"}}}})
end
end)
.show()
来自解说社区客户端 |