The Ultimate Speech-AI Pipeline for iOS & macOS
Utterance is a modular, high-performance SDK that transforms how your apps listen, understand, and speak. Built for the modern AI era, it empowers developers to integrate complex speech pipelines with just a few lines of code.
Features • Installation • Usage • Documentation • Contributing
| Module | Feature |
|---|---|
| 🎙️ Audio Engine | Low-latency recording with automatic silence detection, volume monitoring, and ring-buffer architecture. |
| 📝 Transcription | Real-time Speech-to-Text with support for streaming results and statement-based grouping. |
| 🌍 Translation | On-the-fly translation bridging language barriers seamlessly. |
| 🎨 Visualizer | Drop-in Siri-style waveform components to dazzle your users. |
| 🧩 Modular | Import only what you need: UtteranceAudio, UtteranceTranscript, or the full Suite. |
Utterance is distributed via Swift Package Manager.
Add the package to your Package.swift:
dependencies: [
.package(url: "https://github.com/sownhere/Utterance.git", from: "1.0.0")
],
targets: [
.target(name: "MyApp", dependencies: [
.product(name: "Utterance", package: "Utterance")
])
]Only need the audio engine? No problem.
.product(name: "UtteranceAudio", package: "Utterance")
// Available: UtteranceAudio, UtteranceTranscript, UtteranceTranslationimport Utterance
// Start recording with one line
let task = try await UT.record(.default).run()
print("File saved at: \(task.fileURL)")import Utterance
import SwiftUI
struct DictationView: View {
@StateObject var viewModel = RecordingViewModel()
var body: some View {
VStack {
// Beautiful Siri-like Waveform
SiriWaveformView(audioLevel: viewModel.audioLevel)
Text(viewModel.liveText)
}
}
}We love contributions! Please read our Contributing Guide to get started.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
