Method: AgoraRails::STT#start_task
- Defined in:
- lib/agora_rails/stt.rb
#start_task(channel_name, uid, config) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/agora_rails/stt.rb', line 15 def start_task(channel_name, uid, config) response = self.class.post("/#{@app_id}/rtsc/speech-to-text/tasks", basic_auth: @auth, headers: { 'Content-Type' => 'application/json' }, body: { channel_name: channel_name, uid: uid.to_s, config: config }.to_json ) handle_response(response) end |