Method: AgoraRails::STT#stop_task

Defined in:
lib/agora_rails/stt.rb

#stop_task(task_id) ⇒ Object



28
29
30
31
32
33
34
# File 'lib/agora_rails/stt.rb', line 28

def stop_task(task_id)
  response = self.class.delete("/#{@app_id}/rtsc/speech-to-text/tasks/#{task_id}",
    basic_auth: @auth,
    headers: { 'Content-Type' => 'application/json' }
  )
  handle_response(response)
end