Developers
Overview
API Keys
Webhooks
Usage
Relay v2 Realtime
Try Relay Realtime v2
Sub-second transcription that holds its accuracy on noisy field recordings, across 94 languages.
Developer quickstart
Learn the basics and make your first request with the Foreland API.
Get started1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import { ForelandClient, play } from '@foreland/foreland-js'; const foreland = new ForelandClient({ apiKey: "YOUR_API_KEY", // Defaults to process.env.FORELAND_API_KEY }); const audio = await foreland.textToSpeech.convert( 'K4vTqNBsd7RMkjVDRZzb', // voice_id { text: 'A good chart is a promise about the water below.', modelId: 'foreland_multilingual_v2', outputFormat: 'mp3_44100_128', // output_format } ); await play(audio);