Skip to content

Number lookup and speech APIs ​

Number lookup ​

ts
const r = await vi.lookup.get("052-654-3210", { country: "IL" });
// {
//   valid: true, phone_number: "+972526543210", line_type: "mobile", country: "IL",
//   time_zones: ["Asia/Jerusalem"], range_holder: "Cellcom",
//   workspace: { is_own_number: false, on_dnc: false, consent: { sms: null, whatsapp: "opted_in", voice: null }, contact: { id: "ct_…" } }
// }

Free: validity, formats, line type, country, time zones, the Israeli mobile range holder (the operator the range was allocated to; numbers can be ported), and your own context (do-not-call, consent, CRM contact).

Add fields=carrier for current carrier data, billed per query that returns data (lookup.carrier). Without a configured carrier-data provider the response says carrier_lookup: "unavailable" and nothing is billed.

Speech-to-text ​

bash
curl -X POST https://api.kolwire.com/v1/speech/transcriptions \
  -H "Authorization: Bearer $KOLWIRE_API_KEY" \
  -F file=@meeting.wav -F language=he

Returns { text, language, duration_ms, billed_minutes, segments: [{ speaker, start_ms, end_ms, text }] }. WAV, MP3, FLAC and OGG/Opus up to ~9.5 MB; omit language to auto-detect Hebrew / English. Billed per started minute (stt.minute). JSON with audio_base64 works too.

Text-to-speech ​

bash
curl -X POST https://api.kolwire.com/v1/speech/synthesize \
  -H "Authorization: Bearer $KOLWIRE_API_KEY" -H "Content-Type: application/json" \
  -d '{"text":"שלום, תודה שפניתם אלינו","language":"he"}' -o hello.wav

voice: default-he, default-en or a provider voice name (GET /v1/speech/voices). format: "pcm16" returns raw 16-bit PCM. Billed per 1,000 characters (tts.characters).

Test-mode workspaces get a canned transcription and a test tone, and are never billed.