polyhedron / teacher.http
mingyang91's picture
add http call demo
1bc524e verified
raw
history blame
667 Bytes
### teacher API
// ONLY SUPPORT SINGLE TEACHER PER COURSE ID
// IN message:
// Binary data, PCM audio, 16K sampling rate, single channel, 16-bit depth, little endian
// id: [Required], course ID
// language: [Required], zh-CN, en-US... (see https://docs.aws.amazon.com/zh_cn/transcribe/latest/dg/supported-languages.html)
// prompt: [Optional], All background and context about the course topic
// OUT message:
// example1: {"type":"original","content":"之后","isFinal":false}
// example2: {"type":"original","content":"之后的资本就是说做的工作的做的东西","isFinal":true}
WEBSOCKET wss://{{$exampleServer}}}/ws/teacher?id=456&language=zh-CN&prompt=