Retranscribe a file
curl --request PUT \
--url https://api.wavix.com/v1/speech-analytics/{request_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"callback_url": "https://you-site.com/webhook",
"insights": true
}
'import requests
url = "https://api.wavix.com/v1/speech-analytics/{request_id}"
payload = {
"callback_url": "https://you-site.com/webhook",
"insights": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({callback_url: 'https://you-site.com/webhook', insights: true})
};
fetch('https://api.wavix.com/v1/speech-analytics/{request_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wavix.com/v1/speech-analytics/{request_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'callback_url' => 'https://you-site.com/webhook',
'insights' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wavix.com/v1/speech-analytics/{request_id}"
payload := strings.NewReader("{\n \"callback_url\": \"https://you-site.com/webhook\",\n \"insights\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.wavix.com/v1/speech-analytics/{request_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"callback_url\": \"https://you-site.com/webhook\",\n \"insights\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wavix.com/v1/speech-analytics/{request_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"callback_url\": \"https://you-site.com/webhook\",\n \"insights\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true
}{
"success": false,
"message": "Missing or invalid parameter <param_name>"
}{
"success": false,
"message": "Record not found"
}{
"success": false,
"message": "Missing or invalid parameter <param_name>"
}Speech Analytics
Retranscribe a file
Re-runs transcription on the file identified by request_id, replacing the existing transcript.
PUT
/
v1
/
speech-analytics
/
{request_id}
Retranscribe a file
curl --request PUT \
--url https://api.wavix.com/v1/speech-analytics/{request_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"callback_url": "https://you-site.com/webhook",
"insights": true
}
'import requests
url = "https://api.wavix.com/v1/speech-analytics/{request_id}"
payload = {
"callback_url": "https://you-site.com/webhook",
"insights": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({callback_url: 'https://you-site.com/webhook', insights: true})
};
fetch('https://api.wavix.com/v1/speech-analytics/{request_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wavix.com/v1/speech-analytics/{request_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'callback_url' => 'https://you-site.com/webhook',
'insights' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wavix.com/v1/speech-analytics/{request_id}"
payload := strings.NewReader("{\n \"callback_url\": \"https://you-site.com/webhook\",\n \"insights\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.wavix.com/v1/speech-analytics/{request_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"callback_url\": \"https://you-site.com/webhook\",\n \"insights\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wavix.com/v1/speech-analytics/{request_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"callback_url\": \"https://you-site.com/webhook\",\n \"insights\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true
}{
"success": false,
"message": "Missing or invalid parameter <param_name>"
}{
"success": false,
"message": "Record not found"
}{
"success": false,
"message": "Missing or invalid parameter <param_name>"
}Authorizations
Wavix API key. Pass as Authorization: Bearer <api_key>. Keys support per-resource scopes (none / read / write). See Restricted keys and scopes.
Path Parameters
The request_id of the transcription, returned when the file was uploaded.
Example:
"e865ea07-25af-4fdd-876e-04b0d41d5ebd"
Body
application/json
Response
Returns a success confirmation. Retranscription is queued.
Indicates whether the request was successful.
Example:
true
Was this page helpful?
⌘I