polyhedron / student.http
mingyang91's picture
add http call demo
1bc524e verified
raw
history blame
680 Bytes
### student API
// IN message: N/A
// - id: [Required], course ID
// - language: [Required], zh-CN, en-US
// - voice: [Required], Takumi
// *language & voice support matrix*: https://docs.aws.amazon.com/zh_cn/polly/latest/dg/voicelist.html
// OUT message:
// example1: {"type":"original","content":"ε“ŽοΌŒ","isFinal":true}
// example2: {"type":"translated","content":"γ­γˆγ€"}
// example3: {"type":"lipSync","visemes":[{"time":12,"value":"t"},{"time":25,"value":"@"},{"time":200,"value":"sil"}]}
// example4: Binary data, PCM audio, 16K sampling rate, single channel, 16-bit depth, little endian
WEBSOCKET wss://{{$exampleServer}}}/ws/student?id=456&language=zh-CN&voice=Takumi