Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

Voice call with a bot from the iPhone chat

leepokai66341982e7c0
diff --git a/CLAUDE.md b/CLAUDE.md
index 15bcec6c..db136124 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -30,6 +30,7 @@ Bot-based remote for coding agents: persistent named bots on your computer, mess
- Multiple computers per account are future work, not a current priority: the product targets one computer. The multi-computer structure (`AccountStore`, `BotReference`) stays because relay/accounts/SSH build on it; don't extend or polish multi-computer features unless asked.
- Environments: **dev** (`dev-api.codync.dev`, Clerk development instance, Debug builds) and **main** (`api.codync.dev`, Clerk production, Release builds); `apps/shared/Config/<env>.plist` becomes `AccountConfig.plist`. Details: [spec §14.0](docs/remote-relay-spec.md).
- Push: iOS registers its APNs token with `relay/` → gets an AES-GCM ticket → gives it (plus its X25519 push key) to the host; the host seals title/body to that key and a Notification Service Extension opens it, so `relay/` sees only generic text. Only two alert kinds: *needs you* and *done*, suppressed while the iOS app is connected.
+- Voice call (iPhone): on-device speech in, bot's final replies read aloud; the host sees plain messages. Pro cloud-realtime plan: [docs/voice-call.md](docs/voice-call.md).
- Usage: local only — `claude -p /usage --no-session-persistence`, the Claude status line (`codync-host statusline`, wrapping any existing one), Claude ACP `usage_update` rate-limit meta, Codex rollout files. Never call provider APIs with agent credentials.
- macOS app is thin: embeds `codync-host` in `Contents/MacOS` (Xcode post-build script runs cargo), installs it as a launchd agent via `codync-host install`; menu bar shows status/pairing/usage and opens the native chat window (NavigationSplitView over `CodyncUI`). Not sandboxed, not Mac App Store (the host must spawn CLIs).
diff --git a/Codync.xcodeproj/project.pbxproj b/Codync.xcodeproj/project.pbxproj
index 1dca28d0..4e88f3c4 100644
--- a/Codync.xcodeproj/project.pbxproj
+++ b/Codync.xcodeproj/project.pbxproj
@@ -1024,6 +1024,8 @@
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools";
INFOPLIST_KEY_NSCameraUsageDescription = "Scan the pairing code shown on your computer.";
INFOPLIST_KEY_NSLocalNetworkUsageDescription = "Codync connects to the computer running your bots on your local network.";
+ INFOPLIST_KEY_NSMicrophoneUsageDescription = "Talk to your bots in a voice call.";
+ INFOPLIST_KEY_NSSpeechRecognitionUsageDescription = "Your words are transcribed on this iPhone and sent to your bot as a message.";
INFOPLIST_KEY_NSSupportsLiveActivities = YES;
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
@@ -1074,6 +1076,8 @@
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools";
INFOPLIST_KEY_NSCameraUsageDescription = "Scan the pairing code shown on your computer.";
INFOPLIST_KEY_NSLocalNetworkUsageDescription = "Codync connects to the computer running your bots on your local network.";
+ INFOPLIST_KEY_NSMicrophoneUsageDescription = "Talk to your bots in a voice call.";
+ INFOPLIST_KEY_NSSpeechRecognitionUsageDescription = "Your words are transcribed on this iPhone and sent to your bot as a message.";
INFOPLIST_KEY_NSSupportsLiveActivities = YES;
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
diff --git a/apps/ios/Resources/Info.plist b/apps/ios/Resources/Info.plist
index 64d4c0a1..b95a9797 100644
--- a/apps/ios/Resources/Info.plist
+++ b/apps/ios/Resources/Info.plist
@@ -16,6 +16,10 @@
</array>
</dict>
</array>
+ <key>UIBackgroundModes</key>
+ <array>
+ <string>audio</string>
+ </array>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsLocalNetworking</key>
diff --git a/docs/structure.md b/docs/structure.md
index 2192fd54..7c3214f1 100644
--- a/docs/structure.md
+++ b/docs/structure.md
@@ -3,7 +3,7 @@
```
apps/{ios,macos,linux} one folder per client (iOS widgets in apps/ios/Widgets, push decryption in apps/ios/NotificationService)
kit/Sources/CodyncKit/ Models/ Client/ Design/ (no CodyncUI, widget-safe)
-kit/Sources/CodyncUI/ Store/ Bots/ Thread/ Marketplace/ Usage/ Resources/, cross-platform glue at root (Platform.swift)
+kit/Sources/CodyncUI/ Store/ Bots/ Thread/ Call/ Screen/ Marketplace/ Usage/ Resources/, cross-platform glue at root (Platform.swift)
host/ cloud/ relay/ web/ packaging/
```
diff --git a/docs/voice-call.md b/docs/voice-call.md
new file mode 100644
index 00000000..b49b503f
--- /dev/null
+++ b/docs/voice-call.md
@@ -0,0 +1,32 @@
+# Voice call
+
+A hands-free call with one bot from the iPhone chat (phone icon in the header). The bot is the
+same agent on the computer; the call only changes how you talk to it.
+
+## Free tier (shipped): on the phone
+
+- `kit/Sources/CodyncUI/Call/`: `CallSession` (audio loop) + `CallView` (full-screen layer).
+- Speech → text with `SFSpeechRecognizer` (on-device when the language supports it). A 1.5 s pause
+ ends an utterance and sends it as an ordinary message (`BotStore.send`), so it takes the normal
+ path: queued while the bot works, folded into its next turn.
+- Each new final reply (`data.final`) is read aloud with `AVSpeechSynthesizer` in the reply's own
+ language; markdown and code blocks are dropped (`SpokenText`). The mic pauses while it speaks;
+ tapping the avatar interrupts. An approval request is announced, answered in the chat.
+- The host and relay see text only. No new cloud pieces. `UIBackgroundModes: audio` keeps the call
+ alive with the screen locked.
+
+## Pro tier (planned): cloud realtime voice
+
+For better recognition (mixed Chinese/English, code terms) and a real conversation (barge-in,
+"what are you doing?" answered from the transcript):
+
+- A realtime speech model (OpenAI Realtime or Gemini Live) acts as the operator in front of the bot.
+ Its tools: send a message to the bot, read the bot's status and recent transcript. The coding is
+ still done by the bot's own agent.
+- The phone connects to the provider directly (WebRTC). Our server only mints a short-lived client
+ token after checking the account's Pro entitlement and remaining minutes; audio never passes
+ through it, and the provider key never ships in the app.
+- Bot traffic stays on the encrypted channel; only the voice part goes to the provider, which the
+ call screen states.
+- Billing: App Store subscription (RevenueCat entitlement), a monthly minute cap enforced when
+ minting tokens.
diff --git a/kit/Sources/CodyncUI/Call/CallSession.swift b/kit/Sources/CodyncUI/Call/CallSession.swift
new file mode 100644
index 00000000..b5d68ee9
--- /dev/null
+++ b/kit/Sources/CodyncUI/Call/CallSession.swift
@@ -0,0 +1,222 @@
+#if os(iOS)
+import AVFoundation
+import NaturalLanguage
+import Observation
+import os
+import Speech
+
+private let log = Logger(subsystem: "com.pokai.Codync", category: "Call")
+
+/// A hands-free voice loop with one bot, all on the phone: speech is transcribed on device,
+/// sent as an ordinary message, and the bot's final replies are read aloud. The host sees text only.
+@MainActor
+@Observable
+final class CallSession {
+ enum Phase: Equatable {
+ case starting
+ case listening
+ case speaking
+ case failed(String)
+ }
+
+ private(set) var phase: Phase = .starting
+ /// What you're saying right now (live caption).
+ private(set) var heard = ""
+ /// The reply being read aloud.
+ private(set) var said = ""
+ var muted = false {
+ didSet {
+ guard muted != oldValue, phase == .listening else { return }
+ if muted { stopListening() } else { listen() }
+ }
+ }
+
+ private let send: (String) -> Void
+ private let recognizer = SFSpeechRecognizer()
+ private let engine = AVAudioEngine()
+ private var request: SFSpeechAudioBufferRecognitionRequest?
+ private var task: SFSpeechRecognitionTask?
+ /// Bumped per utterance so late callbacks from a cancelled recognition are dropped.
+ private var generation = 0
+ private var silence: Task<Void, Never>?
+ private let synthesizer = AVSpeechSynthesizer()
+ private var speechDone: SpeechDone?
+ private var ended = false
+
+ /// A pause this long ends what you're saying and sends it.
+ static let endOfUtterance: Duration = .milliseconds(1500)
+
+ init(send: @escaping (String) -> Void) {
+ self.send = send
+ let done = SpeechDone { [weak self] in Task { @MainActor in self?.finishedSpeaking() } }
+ synthesizer.delegate = done
+ speechDone = done
+ }
+
+ func start() async {
+ guard await AVAudioApplication.requestRecordPermission() else {
+ return fail("Allow the microphone for Codync in Settings to talk to your bots.")
+ }
+ guard await Self.speechAuthorized() else {
+ return fail("Allow Speech Recognition for Codync in Settings to talk to your bots.")
+ }
+ guard let recognizer, recognizer.isAvailable else {
+ return fail("Speech recognition isn't available for this language right now.")
+ }
+ do {
+ let audio = AVAudioSession.sharedInstance()
+ try audio.setCategory(.playAndRecord, mode: .voiceChat, options: [.defaultToSpeaker, .allowBluetoothHFP])
+ try audio.setActive(true)
+ } catch {
+ return fail("Couldn't start audio: \(error.localizedDescription)")
+ }
+ guard !ended else { return }
+ listen()
+ }
+
+ func end() {
+ ended = true
+ stopListening()
+ synthesizer.stopSpeaking(at: .immediate)
+ try? AVAudioSession.sharedInstance().setActive(false, options: .notifyOthersOnDeactivation)
+ }
+
+ /// Reads a reply aloud (the bot's final message), pausing the microphone meanwhile.
+ func speak(_ markdown: String) {
+ let text = SpokenText.from(markdown)
+ guard !ended, !text.isEmpty, phase != .starting, !(phase.isFailed) else { return }
+ stopListening()
+ said = text
+ phase = .speaking
+ let utterance = AVSpeechUtterance(string: text)
+ utterance.voice = Self.voice(for: text)
+ synthesizer.speak(utterance)
+ }
+
+ /// Cuts the reply short and goes back to listening.
+ func interrupt() {
+ guard phase == .speaking else { return }
+ synthesizer.stopSpeaking(at: .immediate)
+ listen()
+ }
+
+ // MARK: listening
+
+ private func listen() {
+ phase = .listening
+ heard = ""
+ guard !muted, !ended, let recognizer else { return }
+ generation += 1
+ let request = SFSpeechAudioBufferRecognitionRequest()
+ request.shouldReportPartialResults = true
+ request.addsPunctuation = true
+ if recognizer.supportsOnDeviceRecognition { request.requiresOnDeviceRecognition = true }
+ self.request = request
+ let input = engine.inputNode
+ input.removeTap(onBus: 0)
+ input.installTap(onBus: 0, bufferSize: 1024, format: input.outputFormat(forBus: 0), block: Self.tap(request))
+ engine.prepare()
+ do {
+ try engine.start()
+ } catch {
+ log.error("audio engine: \(error.localizedDescription, privacy: .public)")
+ return fail("Couldn't use the microphone: \(error.localizedDescription)")
+ }
+ task = recognizer.recognitionTask(with: request, resultHandler: Self.results(self, generation: generation))
+ }
+
+ private func stopListening() {
+ silence?.cancel()
+ silence = nil
+ generation += 1
+ task?.cancel()
+ task = nil
+ request?.endAudio()
+ request = nil
+ if engine.isRunning { engine.stop() }
+ engine.inputNode.removeTap(onBus: 0)
+ }
+
+ fileprivate func recognized(_ text: String, final: Bool, generation: Int) {
+ guard generation == self.generation, phase == .listening else { return }
+ heard = text
+ silence?.cancel()
+ if final { return submit() }
+ silence = Task {
+ try? await Task.sleep(for: Self.endOfUtterance)
+ guard !Task.isCancelled else { return }
+ submit()
+ }
+ }
+
+ private func submit() {
+ let text = heard.trimmingCharacters(in: .whitespacesAndNewlines)
+ stopListening()
+ if !text.isEmpty { send(text) }
+ // Keep listening while the bot works: more messages fold into its next turn.
+ listen()
+ }
+
+ private func finishedSpeaking() {
+ guard phase == .speaking else { return }
+ listen()
+ }
+
+ private func fail(_ message: String) {
+ stopListening()
+ phase = .failed(message)
+ }
+
+ // MARK: audio-thread closures (built outside the main actor)
+
+ private nonisolated static func tap(_ request: SFSpeechAudioBufferRecognitionRequest) -> AVAudioNodeTapBlock {
+ { buffer, _ in request.append(buffer) }
+ }
+
+ private nonisolated static func results(_ session: CallSession, generation: Int) -> @Sendable (SFSpeechRecognitionResult?, (any Error)?) -> Void {
+ { result, _ in
+ guard let result else { return }
+ let text = result.bestTranscription.formattedString
+ let final = result.isFinal
+ Task { @MainActor in session.recognized(text, final: final, generation: generation) }
+ }
+ }
+
+ private nonisolated static func speechAuthorized() async -> Bool {
+ await withCheckedContinuation { done in
+ SFSpeechRecognizer.requestAuthorization { done.resume(returning: $0 == .authorized) }
+ }
+ }
+
+ // MARK: voice
+
+ /// A voice in the reply's own language (replies may be English while the phone is in Chinese).
+ private static func voice(for text: String) -> AVSpeechSynthesisVoice? {
+ guard let language = NLLanguageRecognizer.dominantLanguage(for: text) else { return nil }
+ let code = switch language {
+ case .traditionalChinese: "zh-TW"
+ case .simplifiedChinese: "zh-CN"
+ default: language.rawValue
+ }
+ let voices = AVSpeechSynthesisVoice.speechVoices().filter { $0.language.hasPrefix(code) }
+ // Prefer the phone's own region for the language, then the best quality installed.
+ let preferred = voices.filter { $0.language == Locale.current.identifier(.bcp47) }
+ return (preferred.isEmpty ? voices : preferred).max { $0.quality.rawValue < $1.quality.rawValue }
+ }
+}
+
+extension CallSession.Phase {
+ var isFailed: Bool { if case .failed = self { true } else { false } }
+}
+
+/// Synthesizer delegate: a finished utterance hands back to listening. Cancelled ones don't.
+private final class SpeechDone: NSObject, AVSpeechSynthesizerDelegate, Sendable {
+ let onFinish: @Sendable () -> Void
+
+ init(onFinish: @escaping @Sendable () -> Void) { self.onFinish = onFinish }
+
+ func speechSynthesizer(_ synthesizer: AVSpeechSynthesizer, didFinish utterance: AVSpeechUtterance) {
+ onFinish()
+ }
+}
+#endif
diff --git a/kit/Sources/CodyncUI/Call/CallView.swift b/kit/Sources/CodyncUI/Call/CallView.swift
new file mode 100644
index 00000000..c4550e40
--- /dev/null
+++ b/kit/Sources/CodyncUI/Call/CallView.swift
@@ -0,0 +1,148 @@
+#if os(iOS)
+import CodyncKit
+import SwiftUI
+
+/// A voice call with a bot: talk hands-free, hear its final replies. Everything else about the
+/// turn (tools, thinking) stays in the chat.
+struct CallView: View {
+ let botId: String
+ let close: () -> Void
+ @Environment(BotStore.self) private var model
+ @Environment(\.accessibilityReduceMotion) private var reduceMotion
+ @State private var session: CallSession?
+ @State private var startedAt = Date.now
+
+ private var bot: Bot? { model.bots[botId] }
+ /// The newest final reply; each new one is read aloud.
+ private var lastReply: Entry? { model.thread(botId).last { $0.kind == "agent" && $0.data.final == true } }
+
+ var body: some View {
+ VStack(spacing: 0) {
+ header.padding(.top, 24)
+ Spacer()
+ center
+ Spacer()
+ caption
+ .frame(maxWidth: .infinity, minHeight: 96, alignment: .top)
+ .padding(.horizontal, 32)
+ controls.padding(.bottom, 32).padding(.top, 24)
+ }
+ .frame(maxWidth: .infinity, maxHeight: .infinity)
+ .background(Palette.background.ignoresSafeArea())
+ .animation(Motion.reduced(Motion.fade, reduceMotion), value: session?.phase)
+ .onAppear {
+ let session = CallSession { [model, botId] in model.send($0, to: botId) }
+ self.session = session
+ Task { await session.start() }
+ }
+ .onDisappear { session?.end() }
+ .onChange(of: lastReply?.id) { _, _ in
+ if let text = lastReply?.data.text { session?.speak(text) }
+ }
+ .onChange(of: bot?.needsInput) { _, needs in
+ if needs == true { session?.speak("\(bot?.name ?? "The bot") needs your approval in the chat.") }
+ }
+ }
+
+ private var header: some View {
+ VStack(spacing: 6) {
+ Text(bot?.name ?? "")
+ .font(.title2.weight(.semibold))
+ .foregroundStyle(Palette.text)
+ TimelineView(.periodic(from: startedAt, by: 1)) { context in
+ Text(status(now: context.date))
+ .font(.subheadline.monospacedDigit())
+ .foregroundStyle(Palette.secondary)
+ .contentTransition(.numericText())
+ }
+ }
+ }
+
+ private var center: some View {
+ Button {
+ session?.interrupt()
+ } label: {
+ ZStack {
+ if let session, session.phase == .listening, !session.muted {
+ ThinkingOrb(state: .listening, size: 220, color: Palette.tertiary)
+ } else if bot?.isWorking == true, session?.phase != .speaking {
+ ThinkingOrb(state: .working, size: 220, color: Palette.tertiary)
+ }
+ if let bot { CharacterAvatar(bot: bot, size: 120) }
+ }
+ .frame(width: 240, height: 240)
+ .scaleEffect(session?.phase == .speaking && !reduceMotion ? 1.06 : 1)
+ .animation(.easeInOut(duration: 0.9).repeatForever(autoreverses: true), value: session?.phase == .speaking)
+ .contentShape(Circle())
+ }
+ .buttonStyle(.plain)
+ .disabled(session?.phase != .speaking)
+ .accessibilityLabel(session?.phase == .speaking ? "Interrupt" : bot?.name ?? "")
+ }
+
+ @ViewBuilder private var caption: some View {
+ switch session?.phase {
+ case .failed(let message):
+ Text(message)
+ .font(.callout)
+ .foregroundStyle(Palette.danger)
+ .multilineTextAlignment(.center)
+ case .speaking:
+ Text(session?.said ?? "")
+ .font(.body)
+ .foregroundStyle(Palette.text)
+ .multilineTextAlignment(.center)
+ .lineLimit(4)
+ .truncationMode(.head)
+ default:
+ Text(session?.heard ?? "")
+ .font(.title3)
+ .foregroundStyle(Palette.text)
+ .multilineTextAlignment(.center)
+ .lineLimit(3)
+ .truncationMode(.head)
+ }
+ }
+
+ private var controls: some View {
+ HStack(spacing: 56) {
+ let muted = session?.muted == true
+ Button {
+ session?.muted.toggle()
+ } label: {
+ Image(systemName: muted ? "mic.slash.fill" : "mic.fill")
+ .font(.system(size: 24, weight: .semibold))
+ .frame(width: 72, height: 72)
+ .background(muted ? Palette.accentFill : Palette.surface, in: Circle())
+ .foregroundStyle(muted ? Palette.onAccent : Palette.text)
+ .contentTransition(.symbolEffect(.replace))
+ }
+ .buttonStyle(PressScale())
+ .accessibilityLabel(muted ? "Unmute" : "Mute")
+ Button(action: close) {
+ Image(systemName: "phone.down.fill")
+ .font(.system(size: 26, weight: .semibold))
+ .frame(width: 72, height: 72)
+ .background(Palette.danger, in: Circle())
+ .foregroundStyle(.white)
+ }
+ .buttonStyle(PressScale())
+ .accessibilityLabel("End call")
+ }
+ .animation(Motion.reduced(Motion.fade, reduceMotion), value: session?.muted)
+ }
+
+ private func status(now: Date) -> String {
+ let seconds = Int(now.timeIntervalSince(startedAt))
+ let clock = String(format: "%d:%02d", seconds / 60, seconds % 60)
+ let state: String = switch session?.phase {
+ case .starting, nil: "Connecting…"
+ case .speaking: "Speaking"
+ case .failed: "Can't listen"
+ case .listening where session?.muted == true: "Muted"
+ case .listening: bot?.isWorking == true ? "Working · listening" : "Listening"
+ }
+ return "\(state) · \(clock)"
+ }
+}
+#endif
diff --git a/kit/Sources/CodyncUI/Call/SpokenText.swift b/kit/Sources/CodyncUI/Call/SpokenText.swift
new file mode 100644
index 00000000..afcacff6
--- /dev/null
+++ b/kit/Sources/CodyncUI/Call/SpokenText.swift
@@ -0,0 +1,24 @@
+import Foundation
+
+/// Chat replies turned into what a call reads aloud.
+enum SpokenText {
+ /// A reply as it should sound: markdown syntax and code blocks dropped.
+ static func from(_ markdown: String) -> String {
+ var text = markdown
+ let rules: [(String, String)] = [
+ (#"```[\s\S]*?```"#, ""), // code blocks
+ (#"!?\[([^\]]*)\]\([^)]*\)"#, "$1"), // links and images → their text
+ (#"`([^`]*)`"#, "$1"), // inline code
+ (#"(?m)^\s{0,3}(#{1,6}|>|[-*+]|\d+\.)\s+"#, ""), // headings, quotes, list markers
+ (#"(\*\*|\*|~~)(\S[^\n]*?)\1"#, "$2"), // emphasis (not `_`: it's in identifiers)
+ (#"(?m)^[ \t]*\|?[ \t:|-]{3,}\|?[ \t]*$"#, ""), // table rules
+ (#"(?m)^[ \t]*\|[ \t]*|[ \t]*\|[ \t]*$"#, ""), // table edges
+ (#"[ \t]*\|[ \t]*"#, ", "), // table cells
+ (#"\n{2,}"#, "\n"),
+ ]
+ for (pattern, template) in rules {
+ text = text.replacingOccurrences(of: pattern, with: template, options: .regularExpression)
+ }
+ return text.trimmingCharacters(in: .whitespacesAndNewlines)
+ }
+}
diff --git a/kit/Sources/CodyncUI/Thread/ThreadView.swift b/kit/Sources/CodyncUI/Thread/ThreadView.swift
index 119c8a57..aa5a04b3 100644
--- a/kit/Sources/CodyncUI/Thread/ThreadView.swift
+++ b/kit/Sources/CodyncUI/Thread/ThreadView.swift
@@ -20,6 +20,7 @@ public struct ThreadView: View {
@State private var editingDetails = false
@State private var availableWidth: CGFloat = 800
@State private var compactDetails = false
+ @State private var calling = false
@FocusState private var composerFocused: Bool
@Environment(\.accessibilityReduceMotion) private var reduceMotion
@@ -124,11 +125,15 @@ public struct ThreadView: View {
.symbolEffect(.pulse, options: .repeating)
.transition(.opacity)
}
+ IconButton("Call", systemImage: "phone") { calling = true }
menu
}
.animation(Motion.reduced(Motion.fade, reduceMotion), value: model.screen?.agentBot == botId)
}
.hidesSystemNavigationBar()
+ .codyncOverlay(isPresented: $calling) { close in
+ CallView(botId: botId, close: close)
+ }
#endif
#if os(macOS)
.safeAreaInset(edge: .top, spacing: 0) {
diff --git a/kit/Tests/CodyncUITests/SpokenTextTests.swift b/kit/Tests/CodyncUITests/SpokenTextTests.swift
new file mode 100644
index 00000000..c8af6c11
--- /dev/null
+++ b/kit/Tests/CodyncUITests/SpokenTextTests.swift
@@ -0,0 +1,26 @@
+import Testing
+@testable import CodyncUI
+
+@Test func spokenTextDropsMarkdown() {
+ let reply = """
+ ## Done
+
+ Fixed **the login page** in `LoginView.swift`, see [the PR](https://x.y/1).
+
+ ```swift
+ let a = 1
+ ```
+
+ - kept `user_id` as is
+ | File | Lines |
+ |------|-------|
+ | a.swift | 3 |
+ """
+ #expect(SpokenText.from(reply) == """
+ Done
+ Fixed the login page in LoginView.swift, see the PR.
+ kept user_id as is
+ File, Lines
+ a.swift, 3
+ """)
+}
diff --git a/project.yml b/project.yml
index 3ec01e88..fd047481 100644
--- a/project.yml
+++ b/project.yml
@@ -177,6 +177,8 @@ targets:
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents: YES
INFOPLIST_KEY_NSSupportsLiveActivities: YES
INFOPLIST_KEY_NSCameraUsageDescription: Scan the pairing code shown on your computer.
+ INFOPLIST_KEY_NSMicrophoneUsageDescription: Talk to your bots in a voice call.
+ INFOPLIST_KEY_NSSpeechRecognitionUsageDescription: Your words are transcribed on this iPhone and sent to your bot as a message.
INFOPLIST_KEY_NSLocalNetworkUsageDescription: Codync connects to the computer running your bots on your local network.
# Portrait everywhere except the screen viewer (AppDelegate + OrientationLock).
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone: "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"