Synthesise speech
TTS with Hakim Fast v1.3. Streaming MP3 to disk, a voice you already heard on the landing.
import { Hakim } from '@tryhakim/voice';
const client = new Hakim({ apiKey: process.env.HAKIM_API_KEY });
const audio = await client.audio.speech.create({
model: 'hakim-fast-v1.3',
voice: 'reem-khaleeji',
input: 'أهلاً وسهلاً بكم في حكيم.',
format: 'mp3',
});
await audio.writeToFile('hello.mp3');
