AI Voice Address Capture: Resolve Spoken Addresses with Swiftcomplete
Updated
On this page
1Step 1: Overview#
Use Swiftcomplete’s streaming address API to resolve a spoken postal address during a live call. It’s designed for voice agents, contact centres and IVR systems.
Stream audio for one spoken address over a WebSocket. You receive interim transcripts as the caller speaks. When the caller finishes, send commit_utterance to get the final result.
If the API identifies an address, the response field contains the validated postal address in single-line and multiline formats. The API returns postcode-level coordinates by default, or property-level coordinates if you request them and they’re available. If the API can’t identify the address confidently, it returns a result with type set to not_resolved.
If you already have a recording, use the recorded address API. Both APIs use the same format for the final result.
See it in action
Try the voice demo at demo.what3words.com.
2Step 2: How it works#
- Your server opens a WebSocket for one address and sends
start_utterance. - You stream the caller’s audio as it arrives. Transcripts of what we hear come back while the caller speaks.
- When the caller has finished, you send
commit_utterance. - You receive exactly one result, and the connection closes.
Each connection handles one address. To capture another address, or to try again, open a new connection.
3Step 3: Authentication#
All requests require an API key passed in the x-api-key header.
Keep your key on your server. Browsers can’t add custom headers to a WebSocket connection, so always connect from your backend, never from a web page or mobile app. If you capture the caller’s audio in a browser or app, relay it through your server.
4Step 4: Prepare your audio#
Send raw mono audio (no file header or container) in one of these formats, at its original sample rate. There’s no need to resample it.
| encoding | sampleRateHz | Typical source |
|---|---|---|
| pcm_s16le | 48000 | Browser and app microphones |
| pcm_s16le | 16000 | Wideband (HD) voice and many voice AI platforms |
| pcm_s16le | 8000 | Telephone audio decoded to 16-bit PCM |
| mulaw | 8000 | Telephone audio (G.711 μ-law), common in North America and Japan |
| alaw | 8000 | Telephone audio (G.711 A-law), common in Europe |
pcm_s16le is signed 16-bit little-endian PCM. mulaw and alaw are G.711, one byte per sample. Always tell us which format you’re sending, in start_utterance (step 6).
Send frames of up to four seconds of audio. We recommend 20 ms per frame, for example 160 bytes of 8 kHz mulaw, 640 bytes of 16 kHz pcm_s16le or 1,920 bytes of 48 kHz pcm_s16le.
To convert a recording for testing, you can use FFmpeg:
ffmpeg -i input.wav -ac 1 -ar 16000 -c:a pcm_s16le address.wav5Step 5: Connect#
Open a WebSocket to:
wss://voice.swiftcomplete.com/v1/address/streamSend your key in the x-api-key header:
x-api-key: YOUR_API_KEYYou can open the connection before the caller starts speaking, for example while your agent asks for their address. You must send start_utterance within 15 seconds of connecting.
If we can’t accept the connection, the WebSocket upgrade fails with an HTTP status:
| Status | Meaning | What to do |
|---|---|---|
| 401 | The key is missing or malformed, or Swiftcomplete doesn't recognise it. | Check that the key is copied exactly and sent in x-api-key. |
| 403 | Swiftcomplete recognises the key but won't accept it, for example because its free trial has ended or it is restricted to URLs or IP addresses. | Read the description, then check your account or use an unrestricted key. |
| 429 | The key already has four connections open, or the service has too many connections waiting to start. | Retry after the number of seconds in Retry-After. |
| 503 | The service is temporarily unavailable. | Retry with backoff. |
A 401 or 403 for a key in the right format comes with a JSON body from Swiftcomplete that explains why, the same as the Validate API’s:
{
"parameter": "key",
"description": "Your credits have expired. Please sign in to your account and purchase credits to continue using the service.",
"resolutionExamples": []
}Show or log the description. Its wording comes from Swiftcomplete and may change, so don’t match on it. A missing or malformed key gets a 401 with no body.
6Step 6: Stream the address#
Start
Send one start_utterance message as JSON text:
{
"type": "start_utterance",
"audioFormat": { "encoding": "mulaw", "sampleRateHz": 8000 },
"idempotencyKey": "5f0c2a8e-7d1b-4c3e-9a2f-1b6d8e4c0a7f"
}| Field | Type | Required | Description |
|---|---|---|---|
| type | string | Yes | "start_utterance" |
| audioFormat | object | Yes | The format you'll send: encoding and sampleRateHz, as in step 4. Without it, the request ends with protocol_error. |
| idempotencyKey | string | No | Identifies this address across retries, for example a UUID: 1 to 128 printable ASCII characters, without spaces. See Retries in step 8. |
| coordinateResolution | string | No | "postcode", the default, or "premise" for coordinates at the property. Any other value ends the request with protocol_error. See Coordinates in step 7. |
| clipToCountry | string | No | Return only addresses in these countries: comma-separated ISO 3166-1 alpha-2 codes, GB, GG, IM or JE. See Limit the area below. |
| clipToCircle | string | No | Return only addresses within a circle: "lat,lng,km", for example "51.520847,-0.195521,1". |
| clipToBoundingBox | string | No | Return only addresses within a box: "south_lat,west_lng,north_lat,east_lng", for example "51.52,-0.2,51.53,-0.19". |
| clipToPolygon | string | No | Return only addresses within a polygon: 4 to 25 "lat,lng" pairs, the last the same as the first. |
| language | string | No | The language the caller speaks, as a BCP 47 tag. "en-GB", the default, or "en" for the same. See Language below. |
| mode | string | No | The level of confidence required to return an address: "strict", "flexible" (the default) or "top_rank". See Choose a mode below. |
We ignore fields we don’t recognise, so a client that sends extra fields keeps working.
Limit the area
If you know where the address should be, for example within your delivery area, you can limit the addresses we return with the same clip options as the what3words AutoSuggest API, sent as fields of start_utterance:
{
"type": "start_utterance",
"audioFormat": { "encoding": "mulaw", "sampleRateHz": 8000 },
"clipToCountry": "GB",
"clipToCircle": "51.520847,-0.195521,20"
}Inside means the postcode. An address is inside an area when its postcode’s location is, so an address near the edge may fall on either side of it.
Countries are alternatives, options must all hold.
"GB,JE"returns addresses in either country. WithclipToCountryandclipToCircle, an address must be in one of the countries and inside the circle.GB is the United Kingdom without the Crown Dependencies. For Jersey, Guernsey or the Isle of Man, add JE, GG or IM. Use GB, not UK, and GG, not GY. Without
clipToCountry, all four are included.We return only addresses inside the area, in every mode. We choose the best match among the addresses inside it. If none of them can be returned under your mode and the address we identify is outside it, you receive
not_resolvedwith the reasonoutside_clip(step 7).Each option can be given once. An option that can’t be read, a country we don’t cover, or an option given twice ends the request with
invalid_parameterbefore any work is done (step 7).
Language
language is the language the caller speaks. We currently support English as spoken in the UK, en-GB, which is the default; en means the same. It doesn’t change the address returned or its format. Other languages are refused with invalid_parameter. To see what’s supported, see Coverage (step 10).
Choose a mode
mode determines the level of confidence required to return an address. The result looks the same in every mode, and every address returned is charged once.
| mode | An address is returned when it is |
|---|---|
| strict (most strict) | identified with confidence and the speaker included a locality or postcode that is confidently matched to the rest of the address. |
| flexible (default - medium strictness) | identified with confidence, without requiring the strong confidence level for the locality or postcode that is required in strict mode. |
| top_rank (least strict) | the top ranked address that matches what was heard. The best match is returned even when confidence isn’t high; it is still possible to have no result returned (although in almost all cases a result is expected to be returned). |
Any other value ends the request with
invalid_parameterbefore any work is done (step 7).Note:
top_rankmay be helpful when using a narrow clipping area and it is desirable to return results based on partial addresses. For example, in the use case of a local taxi service in a village (which doesn’t contain duplicate street names), a speaker may omit locality and postcode from the address in the belief that they are not required. For any cases for which clipping is not applied or is only applied at country level, flexible or strict modes are strongly recommended.
Send audio
Send the caller’s audio as binary WebSocket messages, in order, as it arrives. Each address can be up to 60 seconds of audio.
Commit
When the caller has finished saying their address, send:
{ "type": "commit_utterance" }Commit as soon as you’re confident the caller has finished, for example when your voice activity detection hears them stop. Callers often pause part-way through an address, for example before the postcode, so don’t commit at the first short pause: anything said after the commit is lost. This matters most on phone audio, where pauses are harder to tell from quiet speech. The result follows the commit. Don’t send any more audio afterwards.
Transcripts
You receive transcripts while the caller speaks:
{"type":"transcript_interim","transcript":"ten downing"}
{"type":"transcript_interim","transcript":"ten downing street"}
{"type":"transcript_final","transcript":"ten downing street london"}- Each interim transcript holds everything heard so far and replaces the one before it.
- There is at most one final transcript, sent after you commit. Don’t rely on receiving it.
- They are raw speech-to-text output, unformatted and possibly with recognition errors. Use them for display, such as live captions or context for your agent, or ignore them. Never use them as the address: the result carries the address.
7Step 7: Handle the result#
After you commit, you receive exactly one of these three events, and then the connection closes. We recommend a client timeout of 15 seconds after the commit.
validation_completed: an address was found
{
"type": "validation_completed",
"turnId": "9fb7c1e2-4d0a-4c55-a0f3-2b8e6d1f7a90",
"appliedOptions": { "clipToCountry": "GB,GG,IM,JE", "language": "en-GB", "mode": "flexible" },
"response": {
"validation": { "result": "match", "resolution": "premise" },
"address": {
"singleLine": "65 Alfred Road, London, W2 5EU, United Kingdom",
"multiLine": {
"line1": "65 Alfred Road",
"primaryLocality": "London",
"postalCode": "W2 5EU"
}
},
"associatedRecords": null
}
}response is exactly what the Swiftcomplete Validate API returns for this address, so you can handle it with the same code.
validation.resultismatch,suggestionornone.validation.resolutionis the level the address was matched to, for examplepremiseorstreet.addressholds the formatted address, both on a single line and split into lines.
turnId identifies this request. Include it if you contact support.
appliedOptions lists the clip, language and mode options the request used, including the defaults, so you can confirm they were applied.
Coordinates
By default, an address’s coordinates are its postcode’s. To ask for coordinates at the property itself, send coordinateResolution set to premise in start_utterance. response is still exactly what the Validate API returns when asked for premise coordinates: where Swiftcomplete has no point for the property, the coordinates stay at the postcode. See the Validate API documentation for how coordinates are returned.
Each address is charged once, after you receive it, at Validate’s price for the coordinates it returns: an address returned with premise coordinates is charged at the premise price, and one with postcode coordinates at the standard price.
what3words addresses
A caller can end their address with a what3words address, for example “65 Alfred Road, London, filled count soap”. When they do, it’s returned with the address, exactly as the Validate API returns one: in address.multiLine.what3words and at the end of address.singleLine.
{
"type": "validation_completed",
"turnId": "9fb7c1e2-4d0a-4c55-a0f3-2b8e6d1f7a90",
"appliedOptions": { "clipToCountry": "GB,GG,IM,JE", "language": "en-GB", "mode": "flexible" },
"response": {
"validation": { "result": "match", "resolution": "premise" },
"address": {
"singleLine": "65 Alfred Road, London, W2 5EU, United Kingdom, ///filled.count.soap",
"multiLine": {
"line1": "65 Alfred Road",
"primaryLocality": "London",
"postalCode": "W2 5EU",
"what3words": "///filled.count.soap"
}
},
"associatedRecords": null
}
}If the caller doesn’t give one, address.multiLine.what3words is null.
not_resolved: no address could be identified
{"type":"not_resolved","turnId":"9fb7c1e2-4d0a-4c55-a0f3-2b8e6d1f7a90"}We couldn’t identify an address that your mode returns (see Choose a mode in step 6), so we don’t return a guess. With top_rank, this means we found no address at all. Ask the caller again on a new connection, for example asking them to say the postcode clearly.
If you limited the area and we could only identify an address outside it, the result says so, and isn’t charged:
{"type":"not_resolved","turnId":"9fb7c1e2-4d0a-4c55-a0f3-2b8e6d1f7a90","reason":"outside_clip","appliedOptions":{"clipToCountry":"GB,GG,IM,JE","clipToCircle":"51.520847,-0.195521,20","language":"en-GB","mode":"flexible"}}Tell the caller you can’t accept that address, rather than asking them to repeat it.
error: the request failed
{"type":"error","turnId":"9fb7c1e2-4d0a-4c55-a0f3-2b8e6d1f7a90","code":"service_busy","retryAfterMs":1000}| code | Meaning | What to do |
|---|---|---|
| invalid_audio | The audio wasn't in the required format, or you committed without sending any. | Check your audio against step 4. |
| utterance_limit_exceeded | A frame held more than 4 seconds of audio, or the address more than 60 seconds. | Send smaller frames, and capture only the address. |
| no_speech | We heard no speech. | Ask the caller to say their address again. |
| protocol_error | Messages arrived out of order or couldn't be read, for example audio before start_utterance, a second start_utterance or an unknown coordinateResolution. | Fix your client. |
| invalid_parameter | A clip, language or mode option couldn't be read or isn't supported, or was given twice. parameter names it and message says why. No work was done. | Fix the option. |
| service_busy | The service is at capacity. No work was done. | Retry after retryAfterMs milliseconds. |
| api_key_rejected | Swiftcomplete stopped accepting your key during the request, for example because your credits ran out or your free trial ended. The address isn't returned. | Read the description and check your account. Retrying won't help until it's fixed. |
| service_unavailable | A temporary failure on our side. | Retry once (see below). If it keeps happening, contact us with the turnId and errorRef. |
An api_key_rejected error also has a description from Swiftcomplete, for example:
{"type":"error","turnId":"9fb7c1e2-4d0a-4c55-a0f3-2b8e6d1f7a90","code":"api_key_rejected","description":"Your free trial has expired. Please sign in to your account and purchase credits to continue using the service."}An invalid_parameter error names the option and says what’s wrong, for example:
{"type":"error","turnId":"9fb7c1e2-4d0a-4c55-a0f3-2b8e6d1f7a90","code":"invalid_parameter","parameter":"clipToCountry","message":"UK is not an ISO 3166-1 country code: use GB for England, Scotland, Wales and Northern Ireland. Supported: GB, GG, IM, JE"}A service_unavailable error also has an errorRef, such as "errorRef":"E954", which helps our support team find the cause. New values may be added, so don’t write code that depends on particular ones.
8Step 8: Retries#
If a network failure or timeout prevents you from receiving a result, you can ask the caller to repeat their address or open a new connection and resend the captured audio at its original pace. Use a new idempotencyKey if the caller repeats their address, or reuse the original key if resending the same audio.
For 120 seconds after a result, the same key returns the original result and turnId without reprocessing the audio. Keys for requests that end in an error aren’t retained, so retries are processed again. Retries while the original request is still processing return service_busy.
Use a new key for each address capture. Within the 120-second window, reusing a key returns the original result, even if the audio or other fields in start_utterance have changed.
9Step 9: Limits#
| Limit | Value |
|---|---|
| Addresses per connection | 1 |
| Time to send start_utterance after connecting | 15 seconds |
| Audio per address | 60 seconds |
| Time from start_utterance to commit_utterance | 120 seconds |
| Frame size | 4 seconds of audio |
| Simultaneous connections per key | 4. Contact us if you need more. |
While a request is active, the server sends a WebSocket ping every 20 seconds. Standard WebSocket libraries answer automatically.
10Step 10: Coverage#
The API resolves postal addresses in the United Kingdom (GB), Guernsey (GG), the Isle of Man (IM) and Jersey (JE), spoken in English, one address per connection. To check what's supported from your code, send a GET with your key in the x-api-key header to:
https://voice.swiftcomplete.com/v1/address/available-countrieshttps://voice.swiftcomplete.com/v1/address/available-languages
{"countries":[{"code":"GB","languages":["en-GB"],"name":"United Kingdom"},{"code":"GG","languages":["en-GB"],"name":"Guernsey"},{"code":"IM","languages":["en-GB"],"name":"Isle of Man"},{"code":"JE","languages":["en-GB"],"name":"Jersey"}]}
{"languages":[{"code":"en-GB","name":"English (UK)","nativeName":"English (UK)"}]}These requests aren't charged.
11Step 11: Example code#
Both examples stream a WAV file at real-time pace, as a live call would, and print the result. The WAV file must be 16-bit mono PCM at 8, 16 or 48 kHz (see step 4).
Python
"""Resolve a spoken UK address from a WAV file with Swiftcomplete.
Usage:
pip install "websockets>=14"
export SWIFTCOMPLETE_API_KEY=your-key
python resolve_address.py address.wav
"""
import asyncio
import json
import os
import sys
import uuid
import wave
import websockets
URL = "wss://voice.swiftcomplete.com/v1/address/stream"
SAMPLE_RATES = (8_000, 16_000, 48_000)
FRAME_MS = 20
RESULT_TIMEOUT_S = 15
def read_pcm(path):
with wave.open(path, "rb") as wav:
rate = wav.getframerate()
if wav.getnchannels() != 1 or wav.getsampwidth() != 2 or rate not in SAMPLE_RATES:
sys.exit("The WAV file must be 16-bit mono PCM at 8, 16 or 48 kHz")
return wav.readframes(wav.getnframes()), rate
async def stream_audio(ws, pcm, rate):
"""Send the audio at real-time pace, as a live call would, then commit."""
frame_bytes = rate * 2 * FRAME_MS // 1000 # 20 ms of 16-bit mono audio
try:
for offset in range(0, len(pcm), frame_bytes):
await ws.send(pcm[offset:offset + frame_bytes])
await asyncio.sleep(FRAME_MS / 1000)
await ws.send(json.dumps({"type": "commit_utterance"}))
except websockets.ConnectionClosed:
pass # The server ended the request early; its result explains why.
async def resolve(pcm, rate):
headers = {"x-api-key": os.environ["SWIFTCOMPLETE_API_KEY"]}
async with websockets.connect(URL, additional_headers=headers) as ws:
await ws.send(json.dumps({
"type": "start_utterance",
"idempotencyKey": str(uuid.uuid4()),
"audioFormat": {"encoding": "pcm_s16le", "sampleRateHz": rate},
}))
sender = asyncio.create_task(stream_audio(ws, pcm, rate))
try:
async for message in ws:
event = json.loads(message)
if event["type"] == "transcript_interim":
print("Heard so far:", event["transcript"])
elif event["type"] == "transcript_final":
print("Heard:", event["transcript"])
else:
return event # The one result; the server then closes the connection.
finally:
sender.cancel()
return None
def describe(result):
if result is None:
return "The connection closed without a result"
if result["type"] == "validation_completed":
response = result["response"]
address = (response.get("address") or {}).get("singleLine")
return f"{response['validation']['result']}: {address}"
if result["type"] == "not_resolved":
return "No address identified; ask the caller again"
detail = ""
if "retryAfterMs" in result:
detail += f", retry after {result['retryAfterMs']} ms"
if "errorRef" in result:
detail += f", ref {result['errorRef']}"
if "description" in result:
detail += f": {result['description']}"
return f"Error: {result['code']}{detail} (turn {result['turnId']})"
def refusal(error):
"""Why the connection was refused, with Swiftcomplete's description when it gave one."""
try:
description = json.loads(error.response.body)["description"]
except (TypeError, ValueError, KeyError):
description = None
status = error.response.status_code
return f"Connection refused: HTTP {status}" + (f": {description}" if description else "")
def main():
pcm, rate = read_pcm(sys.argv[1])
audio_seconds = len(pcm) / (rate * 2)
try:
result = asyncio.run(asyncio.wait_for(resolve(pcm, rate), audio_seconds + RESULT_TIMEOUT_S))
except websockets.InvalidStatus as error:
sys.exit(refusal(error))
except asyncio.TimeoutError:
sys.exit("No result in time")
print(describe(result))
if __name__ == "__main__":
main()Node.js
// Resolve a spoken UK address from a WAV file with Swiftcomplete.
//
// Usage (Node.js 18 or later):
// npm install ws
// SWIFTCOMPLETE_API_KEY=your-key node resolve-address.mjs address.wav
import { randomUUID } from "node:crypto";
import { readFileSync } from "node:fs";
import { setTimeout as sleep } from "node:timers/promises";
import WebSocket from "ws";
const URL = "wss://voice.swiftcomplete.com/v1/address/stream";
const SAMPLE_RATES = [8000, 16000, 48000];
const FRAME_MS = 20;
const RESULT_TIMEOUT_MS = 15000;
function readPcm(path) {
const wav = readFileSync(path);
if (wav.toString("ascii", 0, 4) !== "RIFF" || wav.toString("ascii", 8, 12) !== "WAVE") {
throw new Error("Not a WAV file");
}
let format;
for (let offset = 12; offset + 8 <= wav.length; ) {
const id = wav.toString("ascii", offset, offset + 4);
const size = wav.readUInt32LE(offset + 4);
const body = wav.subarray(offset + 8, offset + 8 + size);
if (id === "fmt ") {
format = {
encoding: body.readUInt16LE(0),
channels: body.readUInt16LE(2),
sampleRate: body.readUInt32LE(4),
bits: body.readUInt16LE(14),
};
} else if (id === "data") {
const ok = format?.encoding === 1 && format.channels === 1 &&
SAMPLE_RATES.includes(format.sampleRate) && format.bits === 16;
if (!ok) throw new Error("The WAV file must be 16-bit mono PCM at 8, 16 or 48 kHz");
return { pcm: body, rate: format.sampleRate };
}
offset += 8 + size + (size % 2);
}
throw new Error("The WAV file has no audio data");
}
function describe(result) {
if (!result) return "The connection closed without a result";
if (result.type === "validation_completed") {
const { validation, address } = result.response;
return `${validation.result}: ${address?.singleLine}`;
}
if (result.type === "not_resolved") return "No address identified; ask the caller again";
const retry = result.retryAfterMs ? `, retry after ${result.retryAfterMs} ms` : "";
const ref = result.errorRef ? `, ref ${result.errorRef}` : "";
const why = result.description ? `: ${result.description}` : "";
return `Error: ${result.code}${retry}${ref}${why} (turn ${result.turnId})`;
}
const { pcm, rate } = readPcm(process.argv[2]);
const frameBytes = (rate * 2 * FRAME_MS) / 1000; // 20 ms of 16-bit mono audio
const audioMs = (pcm.length / (rate * 2)) * 1000;
const ws = new WebSocket(URL, { headers: { "x-api-key": process.env.SWIFTCOMPLETE_API_KEY } });
const timer = setTimeout(() => ws.terminate(), audioMs + RESULT_TIMEOUT_MS);
let result;
ws.on("open", async () => {
ws.send(JSON.stringify({
type: "start_utterance",
idempotencyKey: randomUUID(),
audioFormat: { encoding: "pcm_s16le", sampleRateHz: rate },
}));
// Send the audio at real-time pace, as a live call would, then commit.
for (let offset = 0; offset < pcm.length; offset += frameBytes) {
if (ws.readyState !== WebSocket.OPEN) return; // The server ended the request early.
ws.send(pcm.subarray(offset, offset + frameBytes));
await sleep(FRAME_MS);
}
if (ws.readyState === WebSocket.OPEN) ws.send(JSON.stringify({ type: "commit_utterance" }));
});
ws.on("message", (data, isBinary) => {
if (isBinary) return;
const event = JSON.parse(data.toString());
if (event.type === "transcript_interim") console.log("Heard so far:", event.transcript);
else if (event.type === "transcript_final") console.log("Heard:", event.transcript);
else result = event; // The one result; the server then closes the connection.
});
// A refused connection: the HTTP status, with Swiftcomplete's description when it gave one.
ws.on("unexpected-response", (_request, response) => {
let body = "";
response.on("data", (chunk) => { body += chunk; });
response.on("end", () => {
let description;
try { description = JSON.parse(body).description; } catch { /* no JSON body */ }
console.error(`Connection refused: HTTP ${response.statusCode}${description ? `: ${description}` : ""}`);
clearTimeout(timer);
process.exit(1);
});
});
ws.on("error", (error) => console.error(error.message));
ws.on("close", () => {
clearTimeout(timer);
console.log(describe(result));
});12Step 12: Best practices#
- Ask for the whole address at once, including the postcode, for example: “Please tell me your full address, including the postcode.”
- Open the connection early, while your agent is still asking the question, so it’s ready when the caller starts speaking.
- Commit promptly once the caller has finished.
- Read the address back to the caller to confirm it when you can.
- If the address isn’t resolved, ask again on a new connection, for example asking for the postcode first.
- Keep your API key on your server.
13Step 13: Troubleshooting#
401when connecting: check that the key is copied exactly and is sent in thex-api-keyheader.403when connecting: read thedescription. Check that your account has credits and that the key has no URL or IP address restrictions.api_key_rejected: your key stopped being accepted during the request. Read thedescriptionand check your account.protocol_errorstraight afterstart_utterance: check that you sentaudioFormat.invalid_parameter: read themessage. Check the option’s format against step 6, and use GB, GG, IM or JE as country codes.invalid_audio: check thataudioFormatmatches the audio you send (step 4). Raw audio must have no WAV header.- Frequent
not_resolvedorno_speech: check that the audio is the caller’s voice at the right sample rate, isn’t clipped or very quiet, and contains the full address.
If you need help, contact us at
support@swiftcomplete.com and include the turnId, and
the errorRef if you received one.
How your voice agent might benefit from Swiftcomplete
- Contact centres: capture a caller’s address without spelling it out letter by letter.
- Voice AI agents: give your agent a validated address it can confirm and act on.
- IVR systems: take addresses in self-service flows without an agent.
- Deliveries and bookings: collect a delivery or appointment address over the phone.
- Insurance and claims: record the address of a property or incident accurately.
- Utilities and telecoms: check addresses during sign-up, moves and engineer bookings.