lib/azure_stt/client.rb in azure_stt-0.1.1 vs lib/azure_stt/client.rb in azure_stt-0.2.0

- old
+ new

@@ -74,9 +74,23 @@ results.parsed_response['values'] end # + # Delete a transcription with a given ID + # + # @param [String] id The id of the transcription in the API + # + # @return [Boolean] true if the transcription had been deleted, raises an error else + # + def delete_transcription(id) + response = self.class.delete("/transcriptions/#{id}", headers: headers) + handle_response(response) + + true + end + + # # Get an array containing the files for a given transcription # # @see https://uscentral.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-0/operations/GetTranscriptionFiles # # @param [Integer] id The identifier of the transcription