From 5f7e2f7e97c09023b4dbb9922a0cd289894f4d69 Mon Sep 17 00:00:00 2001 From: Edison Jwa Date: Tue, 2 Jun 2026 20:41:30 +0900 Subject: [PATCH] fix(audio): update CoreML bridge for SileroVADRunner rename Aligns with silero-coreml class rename to avoid CoreML type collision. --- apps/chanora_flutter/ios/Runner/SileroCoreMLBridge.swift | 8 ++++---- .../chanora_flutter/macos/Runner/SileroCoreMLBridge.swift | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/chanora_flutter/ios/Runner/SileroCoreMLBridge.swift b/apps/chanora_flutter/ios/Runner/SileroCoreMLBridge.swift index 6ea3e9f..31e1114 100644 --- a/apps/chanora_flutter/ios/Runner/SileroCoreMLBridge.swift +++ b/apps/chanora_flutter/ios/Runner/SileroCoreMLBridge.swift @@ -3,11 +3,11 @@ import Foundation import SileroCoreML private final class ChanoraSileroVadBox { - let vad: SileroVAD + let vad: SileroVADRunner init() throws { let configuration = MLModelConfiguration() - vad = try SileroVAD(configuration: configuration) + vad = try SileroVADRunner(configuration: configuration) } } @@ -67,8 +67,8 @@ public func chanoraSileroVadProcess( setChanoraSileroLastError("SileroVAD probability output pointer is null") return -3 } - guard sampleCount == SileroVAD.chunkSize else { - setChanoraSileroLastError("SileroVAD expected \(SileroVAD.chunkSize) samples, got \(sampleCount)") + guard sampleCount == SileroVADRunner.chunkSize else { + setChanoraSileroLastError("SileroVAD expected \(SileroVADRunner.chunkSize) samples, got \(sampleCount)") return -4 } diff --git a/apps/chanora_flutter/macos/Runner/SileroCoreMLBridge.swift b/apps/chanora_flutter/macos/Runner/SileroCoreMLBridge.swift index 6ea3e9f..31e1114 100644 --- a/apps/chanora_flutter/macos/Runner/SileroCoreMLBridge.swift +++ b/apps/chanora_flutter/macos/Runner/SileroCoreMLBridge.swift @@ -3,11 +3,11 @@ import Foundation import SileroCoreML private final class ChanoraSileroVadBox { - let vad: SileroVAD + let vad: SileroVADRunner init() throws { let configuration = MLModelConfiguration() - vad = try SileroVAD(configuration: configuration) + vad = try SileroVADRunner(configuration: configuration) } } @@ -67,8 +67,8 @@ public func chanoraSileroVadProcess( setChanoraSileroLastError("SileroVAD probability output pointer is null") return -3 } - guard sampleCount == SileroVAD.chunkSize else { - setChanoraSileroLastError("SileroVAD expected \(SileroVAD.chunkSize) samples, got \(sampleCount)") + guard sampleCount == SileroVADRunner.chunkSize else { + setChanoraSileroLastError("SileroVAD expected \(SileroVADRunner.chunkSize) samples, got \(sampleCount)") return -4 }