{
	"widgettype":"HBox",
	"options":{
		"height":"100%"
	},
	"subwidgets":[
		{
			"widgettype":"Form",
			"id":"form",
			"options":{
				"width":"50%",
				"title":"流式返回",
				"submit_url":"{{entire_url('/v1/infer_stream')}}",
				"fields":[
					{
						"name":"speaker",
						"label":"播音员",
						"uitype":"code",
						"value":"main",
						"dataurl":"{{entire_url('/get_speakers.dspy')}}"
					},
					{
						"name":"prompt",
						"label":"文本",
						"uitype":"text",
						"uiparams":{
							"rows":20,
							"cols":80
						}
					}
				]
			}
		},
		{
			"id":"audio",
			"widgettype":"TextedAudioPlayer",
			"options":{
				"width": "50%",
				"height":"100%",
				"auto_play":true
			}
		}
	],
	"binds":[
		{
			"wid":"form",
			"event":"submited",
			"actiontype":"script",
			"target":"audio",
"script":"console.log('this=', this, event);this.set_stream_urls(event.params)"
		}
	]
}
