Skip to main content
The app talks to your server; your server holds the Namu key and calls the API. Use the server routes from the Android page: they serve both apps.

1. Record

AVAudioRecorder writes AAC in an M4A file, which the API reads as it is. Add NSMicrophoneUsageDescription to your Info.plist.
Recorder.swift

2. Send it to your server

VoiceAPI.swift

3. Play the answer

Keep note.m4a until the transcription succeeds, so a dropped connection never means asking the person to speak again.