Build Information
Failed to build Choir, reference main (2c8de8), with Swift 6.3 for Android on 15 Sep 2026 07:30:43 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/halalchristiano/Choir.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/halalchristiano/Choir
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2c8de8a Add voice packs, consent for real-person voices, and faster transcription
Cloned https://github.com/halalchristiano/Choir.git
Revision (git rev-parse @):
2c8de8affcda6811dff9603419413059dc0616d9
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/halalchristiano/Choir.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/halalchristiano/Choir.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:8ca9e1e6d70fd53f5b05e4f64d92569d697563f7f457a1485802bc9eb2cd1382
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.3-latest
Building for debugging...
[0/9] Copying CMUDICT-LICENSE.txt
[1/9] Write sources
[2/9] Copying cmudict.lex
[3/9] Write sources
[4/9] Write swift-version-272D24FF697CF451.txt
[6/69] Compiling Choir ToBI.swift
[7/69] Compiling Choir HarvardSentences.swift
[8/69] Compiling Choir IntelligibilityHarness.swift
[9/69] Compiling Choir ListeningEvaluation.swift
[10/69] Compiling Choir TranscriptionScoring.swift
[11/69] Compiling Choir Cancellation.swift
[12/69] Compiling Choir RealTimeController.swift
[13/69] Compiling Choir SeededGenerator.swift
[14/77] Compiling Choir TheologicalLexicon.swift
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:197:29: error: no exact matches in call to instance method 'append'
195 | // Exponential scaling to approximate inverse Mel
196 | let linearValue = Float(frequency / 4000.0)
197 | linearFrame.append(exp(linearValue))
| `- error: no exact matches in call to instance method 'append'
198 | }
199 |
Swift.Array.append:2:33: note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
1 | generic struct Array {
2 | @inlinable public mutating func append(_ newElement: __owned Element)}
| `- note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
3 |
Swift.RangeReplaceableCollection.append:2:33: note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
1 | protocol RangeReplaceableCollection {
2 | @inlinable public mutating func append(_ newElement: __owned Self.Element)}
| `- note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
3 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:197:36: error: no exact matches in call to global function 'exp'
195 | // Exponential scaling to approximate inverse Mel
196 | let linearValue = Float(frequency / 4000.0)
197 | linearFrame.append(exp(linearValue))
| `- error: no exact matches in call to global function 'exp'
198 | }
199 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:57: error: no exact matches in call to global function 'cos'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| `- error: no exact matches in call to global function 'cos'
219 | complexFrame.append(complex)
220 | }
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:87: error: no exact matches in call to global function 'sin'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| `- error: no exact matches in call to global function 'sin'
219 | complexFrame.append(complex)
220 | }
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:85: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
219 | complexFrame.append(complex)
220 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:55: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
219 | complexFrame.append(complex)
220 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:237:43: error: no exact matches in call to global function 'sin'
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
237 | imag: magnitude * sin(blendedPhase))
| `- error: no exact matches in call to global function 'sin'
238 | }
239 | }
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:236:43: error: no exact matches in call to global function 'cos'
234 | let blendedPhase = current.phase * 0.75 + previous.phase * 0.25
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
| `- error: no exact matches in call to global function 'cos'
237 | imag: magnitude * sin(blendedPhase))
238 | }
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:236:41: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
234 | let blendedPhase = current.phase * 0.75 + previous.phase * 0.25
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
237 | imag: magnitude * sin(blendedPhase))
238 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:237:41: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
237 | imag: magnitude * sin(blendedPhase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
238 | }
239 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:389:38: error: no exact matches in call to global function 'cos'
387 | while length <= count {
388 | let angle = (inverse ? 2 : -2) * Float.pi / Float(length)
389 | let root = Complex(real: cos(angle), imag: sin(angle))
| `- error: no exact matches in call to global function 'cos'
390 | let half = length / 2
391 | var start = 0
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:389:56: error: no exact matches in call to global function 'sin'
387 | while length <= count {
388 | let angle = (inverse ? 2 : -2) * Float.pi / Float(length)
389 | let root = Complex(real: cos(angle), imag: sin(angle))
| `- error: no exact matches in call to global function 'sin'
390 | let half = length / 2
391 | var start = 0
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:431:9: error: cannot convert return expression of type 'Double' to return type 'Float'
429 |
430 | var magnitude: Float {
431 | sqrt(real * real + imag * imag)
| `- error: cannot convert return expression of type 'Double' to return type 'Float'
432 | }
433 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:431:26: error: cannot convert value of type 'Float' to expected argument type 'Double'
429 |
430 | var magnitude: Float {
431 | sqrt(real * real + imag * imag)
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
432 | }
433 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:435:9: error: no exact matches in call to global function 'atan2'
433 |
434 | var phase: Float {
435 | atan2(imag, real)
| |- error: no exact matches in call to global function 'atan2'
| `- note: candidate has partially matching parameter list (CGFloat, CGFloat)
436 | }
437 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:88:8: note: candidate has partially matching parameter list (Double, Double)
86 | long double atanl(long double __x);
87 |
88 | double atan2(double __y, double __x);
| `- note: candidate has partially matching parameter list (Double, Double)
89 | float atan2f(float __y, float __x);
90 | long double atan2l(long double __y, long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:435:9: error: no 'atan2' candidates produce the expected contextual result type 'Float'
433 |
434 | var phase: Float {
435 | atan2(imag, real)
| `- error: no 'atan2' candidates produce the expected contextual result type 'Float'
436 | }
437 | }
Foundation.atan2:1:13: note: 'atan2' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func atan2(_ lhs: CGFloat, _ rhs: CGFloat) -> CGFloat
| `- note: 'atan2' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:88:8: note: 'atan2' produces 'Double', not the expected contextual result type 'Float'
86 | long double atanl(long double __x);
87 |
88 | double atan2(double __y, double __x);
| `- note: 'atan2' produces 'Double', not the expected contextual result type 'Float'
89 | float atan2f(float __y, float __x);
90 | long double atan2l(long double __y, long double __x);
[15/77] Compiling Choir UserLexicon.swift
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:197:29: error: no exact matches in call to instance method 'append'
195 | // Exponential scaling to approximate inverse Mel
196 | let linearValue = Float(frequency / 4000.0)
197 | linearFrame.append(exp(linearValue))
| `- error: no exact matches in call to instance method 'append'
198 | }
199 |
Swift.Array.append:2:33: note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
1 | generic struct Array {
2 | @inlinable public mutating func append(_ newElement: __owned Element)}
| `- note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
3 |
Swift.RangeReplaceableCollection.append:2:33: note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
1 | protocol RangeReplaceableCollection {
2 | @inlinable public mutating func append(_ newElement: __owned Self.Element)}
| `- note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
3 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:197:36: error: no exact matches in call to global function 'exp'
195 | // Exponential scaling to approximate inverse Mel
196 | let linearValue = Float(frequency / 4000.0)
197 | linearFrame.append(exp(linearValue))
| `- error: no exact matches in call to global function 'exp'
198 | }
199 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:57: error: no exact matches in call to global function 'cos'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| `- error: no exact matches in call to global function 'cos'
219 | complexFrame.append(complex)
220 | }
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:87: error: no exact matches in call to global function 'sin'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| `- error: no exact matches in call to global function 'sin'
219 | complexFrame.append(complex)
220 | }
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:85: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
219 | complexFrame.append(complex)
220 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:55: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
219 | complexFrame.append(complex)
220 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:237:43: error: no exact matches in call to global function 'sin'
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
237 | imag: magnitude * sin(blendedPhase))
| `- error: no exact matches in call to global function 'sin'
238 | }
239 | }
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:236:43: error: no exact matches in call to global function 'cos'
234 | let blendedPhase = current.phase * 0.75 + previous.phase * 0.25
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
| `- error: no exact matches in call to global function 'cos'
237 | imag: magnitude * sin(blendedPhase))
238 | }
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:236:41: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
234 | let blendedPhase = current.phase * 0.75 + previous.phase * 0.25
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
237 | imag: magnitude * sin(blendedPhase))
238 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:237:41: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
237 | imag: magnitude * sin(blendedPhase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
238 | }
239 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:389:38: error: no exact matches in call to global function 'cos'
387 | while length <= count {
388 | let angle = (inverse ? 2 : -2) * Float.pi / Float(length)
389 | let root = Complex(real: cos(angle), imag: sin(angle))
| `- error: no exact matches in call to global function 'cos'
390 | let half = length / 2
391 | var start = 0
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:389:56: error: no exact matches in call to global function 'sin'
387 | while length <= count {
388 | let angle = (inverse ? 2 : -2) * Float.pi / Float(length)
389 | let root = Complex(real: cos(angle), imag: sin(angle))
| `- error: no exact matches in call to global function 'sin'
390 | let half = length / 2
391 | var start = 0
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:431:9: error: cannot convert return expression of type 'Double' to return type 'Float'
429 |
430 | var magnitude: Float {
431 | sqrt(real * real + imag * imag)
| `- error: cannot convert return expression of type 'Double' to return type 'Float'
432 | }
433 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:431:26: error: cannot convert value of type 'Float' to expected argument type 'Double'
429 |
430 | var magnitude: Float {
431 | sqrt(real * real + imag * imag)
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
432 | }
433 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:435:9: error: no exact matches in call to global function 'atan2'
433 |
434 | var phase: Float {
435 | atan2(imag, real)
| |- error: no exact matches in call to global function 'atan2'
| `- note: candidate has partially matching parameter list (CGFloat, CGFloat)
436 | }
437 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:88:8: note: candidate has partially matching parameter list (Double, Double)
86 | long double atanl(long double __x);
87 |
88 | double atan2(double __y, double __x);
| `- note: candidate has partially matching parameter list (Double, Double)
89 | float atan2f(float __y, float __x);
90 | long double atan2l(long double __y, long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:435:9: error: no 'atan2' candidates produce the expected contextual result type 'Float'
433 |
434 | var phase: Float {
435 | atan2(imag, real)
| `- error: no 'atan2' candidates produce the expected contextual result type 'Float'
436 | }
437 | }
Foundation.atan2:1:13: note: 'atan2' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func atan2(_ lhs: CGFloat, _ rhs: CGFloat) -> CGFloat
| `- note: 'atan2' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:88:8: note: 'atan2' produces 'Double', not the expected contextual result type 'Float'
86 | long double atanl(long double __x);
87 |
88 | double atan2(double __y, double __x);
| `- note: 'atan2' produces 'Double', not the expected contextual result type 'Float'
89 | float atan2f(float __y, float __x);
90 | long double atan2l(long double __y, long double __x);
[16/77] Compiling Choir AcousticModel.swift
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:197:29: error: no exact matches in call to instance method 'append'
195 | // Exponential scaling to approximate inverse Mel
196 | let linearValue = Float(frequency / 4000.0)
197 | linearFrame.append(exp(linearValue))
| `- error: no exact matches in call to instance method 'append'
198 | }
199 |
Swift.Array.append:2:33: note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
1 | generic struct Array {
2 | @inlinable public mutating func append(_ newElement: __owned Element)}
| `- note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
3 |
Swift.RangeReplaceableCollection.append:2:33: note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
1 | protocol RangeReplaceableCollection {
2 | @inlinable public mutating func append(_ newElement: __owned Self.Element)}
| `- note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
3 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:197:36: error: no exact matches in call to global function 'exp'
195 | // Exponential scaling to approximate inverse Mel
196 | let linearValue = Float(frequency / 4000.0)
197 | linearFrame.append(exp(linearValue))
| `- error: no exact matches in call to global function 'exp'
198 | }
199 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:57: error: no exact matches in call to global function 'cos'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| `- error: no exact matches in call to global function 'cos'
219 | complexFrame.append(complex)
220 | }
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:87: error: no exact matches in call to global function 'sin'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| `- error: no exact matches in call to global function 'sin'
219 | complexFrame.append(complex)
220 | }
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:85: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
219 | complexFrame.append(complex)
220 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:55: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
219 | complexFrame.append(complex)
220 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:237:43: error: no exact matches in call to global function 'sin'
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
237 | imag: magnitude * sin(blendedPhase))
| `- error: no exact matches in call to global function 'sin'
238 | }
239 | }
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:236:43: error: no exact matches in call to global function 'cos'
234 | let blendedPhase = current.phase * 0.75 + previous.phase * 0.25
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
| `- error: no exact matches in call to global function 'cos'
237 | imag: magnitude * sin(blendedPhase))
238 | }
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:236:41: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
234 | let blendedPhase = current.phase * 0.75 + previous.phase * 0.25
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
237 | imag: magnitude * sin(blendedPhase))
238 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:237:41: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
237 | imag: magnitude * sin(blendedPhase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
238 | }
239 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:389:38: error: no exact matches in call to global function 'cos'
387 | while length <= count {
388 | let angle = (inverse ? 2 : -2) * Float.pi / Float(length)
389 | let root = Complex(real: cos(angle), imag: sin(angle))
| `- error: no exact matches in call to global function 'cos'
390 | let half = length / 2
391 | var start = 0
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:389:56: error: no exact matches in call to global function 'sin'
387 | while length <= count {
388 | let angle = (inverse ? 2 : -2) * Float.pi / Float(length)
389 | let root = Complex(real: cos(angle), imag: sin(angle))
| `- error: no exact matches in call to global function 'sin'
390 | let half = length / 2
391 | var start = 0
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:431:9: error: cannot convert return expression of type 'Double' to return type 'Float'
429 |
430 | var magnitude: Float {
431 | sqrt(real * real + imag * imag)
| `- error: cannot convert return expression of type 'Double' to return type 'Float'
432 | }
433 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:431:26: error: cannot convert value of type 'Float' to expected argument type 'Double'
429 |
430 | var magnitude: Float {
431 | sqrt(real * real + imag * imag)
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
432 | }
433 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:435:9: error: no exact matches in call to global function 'atan2'
433 |
434 | var phase: Float {
435 | atan2(imag, real)
| |- error: no exact matches in call to global function 'atan2'
| `- note: candidate has partially matching parameter list (CGFloat, CGFloat)
436 | }
437 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:88:8: note: candidate has partially matching parameter list (Double, Double)
86 | long double atanl(long double __x);
87 |
88 | double atan2(double __y, double __x);
| `- note: candidate has partially matching parameter list (Double, Double)
89 | float atan2f(float __y, float __x);
90 | long double atan2l(long double __y, long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:435:9: error: no 'atan2' candidates produce the expected contextual result type 'Float'
433 |
434 | var phase: Float {
435 | atan2(imag, real)
| `- error: no 'atan2' candidates produce the expected contextual result type 'Float'
436 | }
437 | }
Foundation.atan2:1:13: note: 'atan2' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func atan2(_ lhs: CGFloat, _ rhs: CGFloat) -> CGFloat
| `- note: 'atan2' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:88:8: note: 'atan2' produces 'Double', not the expected contextual result type 'Float'
86 | long double atanl(long double __x);
87 |
88 | double atan2(double __y, double __x);
| `- note: 'atan2' produces 'Double', not the expected contextual result type 'Float'
89 | float atan2f(float __y, float __x);
90 | long double atan2l(long double __y, long double __x);
[17/77] Compiling Choir Vocoder.swift
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:197:29: error: no exact matches in call to instance method 'append'
195 | // Exponential scaling to approximate inverse Mel
196 | let linearValue = Float(frequency / 4000.0)
197 | linearFrame.append(exp(linearValue))
| `- error: no exact matches in call to instance method 'append'
198 | }
199 |
Swift.Array.append:2:33: note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
1 | generic struct Array {
2 | @inlinable public mutating func append(_ newElement: __owned Element)}
| `- note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
3 |
Swift.RangeReplaceableCollection.append:2:33: note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
1 | protocol RangeReplaceableCollection {
2 | @inlinable public mutating func append(_ newElement: __owned Self.Element)}
| `- note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
3 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:197:36: error: no exact matches in call to global function 'exp'
195 | // Exponential scaling to approximate inverse Mel
196 | let linearValue = Float(frequency / 4000.0)
197 | linearFrame.append(exp(linearValue))
| `- error: no exact matches in call to global function 'exp'
198 | }
199 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:57: error: no exact matches in call to global function 'cos'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| `- error: no exact matches in call to global function 'cos'
219 | complexFrame.append(complex)
220 | }
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:87: error: no exact matches in call to global function 'sin'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| `- error: no exact matches in call to global function 'sin'
219 | complexFrame.append(complex)
220 | }
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:85: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
219 | complexFrame.append(complex)
220 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:55: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
219 | complexFrame.append(complex)
220 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:237:43: error: no exact matches in call to global function 'sin'
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
237 | imag: magnitude * sin(blendedPhase))
| `- error: no exact matches in call to global function 'sin'
238 | }
239 | }
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:236:43: error: no exact matches in call to global function 'cos'
234 | let blendedPhase = current.phase * 0.75 + previous.phase * 0.25
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
| `- error: no exact matches in call to global function 'cos'
237 | imag: magnitude * sin(blendedPhase))
238 | }
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:236:41: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
234 | let blendedPhase = current.phase * 0.75 + previous.phase * 0.25
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
237 | imag: magnitude * sin(blendedPhase))
238 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:237:41: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
237 | imag: magnitude * sin(blendedPhase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
238 | }
239 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:389:38: error: no exact matches in call to global function 'cos'
387 | while length <= count {
388 | let angle = (inverse ? 2 : -2) * Float.pi / Float(length)
389 | let root = Complex(real: cos(angle), imag: sin(angle))
| `- error: no exact matches in call to global function 'cos'
390 | let half = length / 2
391 | var start = 0
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:389:56: error: no exact matches in call to global function 'sin'
387 | while length <= count {
388 | let angle = (inverse ? 2 : -2) * Float.pi / Float(length)
389 | let root = Complex(real: cos(angle), imag: sin(angle))
| `- error: no exact matches in call to global function 'sin'
390 | let half = length / 2
391 | var start = 0
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:431:9: error: cannot convert return expression of type 'Double' to return type 'Float'
429 |
430 | var magnitude: Float {
431 | sqrt(real * real + imag * imag)
| `- error: cannot convert return expression of type 'Double' to return type 'Float'
432 | }
433 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:431:26: error: cannot convert value of type 'Float' to expected argument type 'Double'
429 |
430 | var magnitude: Float {
431 | sqrt(real * real + imag * imag)
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
432 | }
433 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:435:9: error: no exact matches in call to global function 'atan2'
433 |
434 | var phase: Float {
435 | atan2(imag, real)
| |- error: no exact matches in call to global function 'atan2'
| `- note: candidate has partially matching parameter list (CGFloat, CGFloat)
436 | }
437 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:88:8: note: candidate has partially matching parameter list (Double, Double)
86 | long double atanl(long double __x);
87 |
88 | double atan2(double __y, double __x);
| `- note: candidate has partially matching parameter list (Double, Double)
89 | float atan2f(float __y, float __x);
90 | long double atan2l(long double __y, long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:435:9: error: no 'atan2' candidates produce the expected contextual result type 'Float'
433 |
434 | var phase: Float {
435 | atan2(imag, real)
| `- error: no 'atan2' candidates produce the expected contextual result type 'Float'
436 | }
437 | }
Foundation.atan2:1:13: note: 'atan2' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func atan2(_ lhs: CGFloat, _ rhs: CGFloat) -> CGFloat
| `- note: 'atan2' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:88:8: note: 'atan2' produces 'Double', not the expected contextual result type 'Float'
86 | long double atanl(long double __x);
87 |
88 | double atan2(double __y, double __x);
| `- note: 'atan2' produces 'Double', not the expected contextual result type 'Float'
89 | float atan2f(float __y, float __x);
90 | long double atan2l(long double __y, long double __x);
[18/77] Compiling Choir VoicePack.swift
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:197:29: error: no exact matches in call to instance method 'append'
195 | // Exponential scaling to approximate inverse Mel
196 | let linearValue = Float(frequency / 4000.0)
197 | linearFrame.append(exp(linearValue))
| `- error: no exact matches in call to instance method 'append'
198 | }
199 |
Swift.Array.append:2:33: note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
1 | generic struct Array {
2 | @inlinable public mutating func append(_ newElement: __owned Element)}
| `- note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
3 |
Swift.RangeReplaceableCollection.append:2:33: note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
1 | protocol RangeReplaceableCollection {
2 | @inlinable public mutating func append(_ newElement: __owned Self.Element)}
| `- note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
3 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:197:36: error: no exact matches in call to global function 'exp'
195 | // Exponential scaling to approximate inverse Mel
196 | let linearValue = Float(frequency / 4000.0)
197 | linearFrame.append(exp(linearValue))
| `- error: no exact matches in call to global function 'exp'
198 | }
199 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:57: error: no exact matches in call to global function 'cos'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| `- error: no exact matches in call to global function 'cos'
219 | complexFrame.append(complex)
220 | }
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:87: error: no exact matches in call to global function 'sin'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| `- error: no exact matches in call to global function 'sin'
219 | complexFrame.append(complex)
220 | }
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:85: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
219 | complexFrame.append(complex)
220 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:55: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
219 | complexFrame.append(complex)
220 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:237:43: error: no exact matches in call to global function 'sin'
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
237 | imag: magnitude * sin(blendedPhase))
| `- error: no exact matches in call to global function 'sin'
238 | }
239 | }
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:236:43: error: no exact matches in call to global function 'cos'
234 | let blendedPhase = current.phase * 0.75 + previous.phase * 0.25
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
| `- error: no exact matches in call to global function 'cos'
237 | imag: magnitude * sin(blendedPhase))
238 | }
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:236:41: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
234 | let blendedPhase = current.phase * 0.75 + previous.phase * 0.25
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
237 | imag: magnitude * sin(blendedPhase))
238 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:237:41: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
237 | imag: magnitude * sin(blendedPhase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
238 | }
239 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:389:38: error: no exact matches in call to global function 'cos'
387 | while length <= count {
388 | let angle = (inverse ? 2 : -2) * Float.pi / Float(length)
389 | let root = Complex(real: cos(angle), imag: sin(angle))
| `- error: no exact matches in call to global function 'cos'
390 | let half = length / 2
391 | var start = 0
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:389:56: error: no exact matches in call to global function 'sin'
387 | while length <= count {
388 | let angle = (inverse ? 2 : -2) * Float.pi / Float(length)
389 | let root = Complex(real: cos(angle), imag: sin(angle))
| `- error: no exact matches in call to global function 'sin'
390 | let half = length / 2
391 | var start = 0
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:431:9: error: cannot convert return expression of type 'Double' to return type 'Float'
429 |
430 | var magnitude: Float {
431 | sqrt(real * real + imag * imag)
| `- error: cannot convert return expression of type 'Double' to return type 'Float'
432 | }
433 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:431:26: error: cannot convert value of type 'Float' to expected argument type 'Double'
429 |
430 | var magnitude: Float {
431 | sqrt(real * real + imag * imag)
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
432 | }
433 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:435:9: error: no exact matches in call to global function 'atan2'
433 |
434 | var phase: Float {
435 | atan2(imag, real)
| |- error: no exact matches in call to global function 'atan2'
| `- note: candidate has partially matching parameter list (CGFloat, CGFloat)
436 | }
437 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:88:8: note: candidate has partially matching parameter list (Double, Double)
86 | long double atanl(long double __x);
87 |
88 | double atan2(double __y, double __x);
| `- note: candidate has partially matching parameter list (Double, Double)
89 | float atan2f(float __y, float __x);
90 | long double atan2l(long double __y, long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:435:9: error: no 'atan2' candidates produce the expected contextual result type 'Float'
433 |
434 | var phase: Float {
435 | atan2(imag, real)
| `- error: no 'atan2' candidates produce the expected contextual result type 'Float'
436 | }
437 | }
Foundation.atan2:1:13: note: 'atan2' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func atan2(_ lhs: CGFloat, _ rhs: CGFloat) -> CGFloat
| `- note: 'atan2' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:88:8: note: 'atan2' produces 'Double', not the expected contextual result type 'Float'
86 | long double atanl(long double __x);
87 |
88 | double atan2(double __y, double __x);
| `- note: 'atan2' produces 'Double', not the expected contextual result type 'Float'
89 | float atan2f(float __y, float __x);
90 | long double atan2l(long double __y, long double __x);
[19/77] Compiling Choir ContextualSpeechPlanner.swift
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:197:29: error: no exact matches in call to instance method 'append'
195 | // Exponential scaling to approximate inverse Mel
196 | let linearValue = Float(frequency / 4000.0)
197 | linearFrame.append(exp(linearValue))
| `- error: no exact matches in call to instance method 'append'
198 | }
199 |
Swift.Array.append:2:33: note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
1 | generic struct Array {
2 | @inlinable public mutating func append(_ newElement: __owned Element)}
| `- note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
3 |
Swift.RangeReplaceableCollection.append:2:33: note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
1 | protocol RangeReplaceableCollection {
2 | @inlinable public mutating func append(_ newElement: __owned Self.Element)}
| `- note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
3 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:197:36: error: no exact matches in call to global function 'exp'
195 | // Exponential scaling to approximate inverse Mel
196 | let linearValue = Float(frequency / 4000.0)
197 | linearFrame.append(exp(linearValue))
| `- error: no exact matches in call to global function 'exp'
198 | }
199 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:57: error: no exact matches in call to global function 'cos'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| `- error: no exact matches in call to global function 'cos'
219 | complexFrame.append(complex)
220 | }
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:87: error: no exact matches in call to global function 'sin'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| `- error: no exact matches in call to global function 'sin'
219 | complexFrame.append(complex)
220 | }
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:85: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
219 | complexFrame.append(complex)
220 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:55: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
219 | complexFrame.append(complex)
220 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:237:43: error: no exact matches in call to global function 'sin'
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
237 | imag: magnitude * sin(blendedPhase))
| `- error: no exact matches in call to global function 'sin'
238 | }
239 | }
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:236:43: error: no exact matches in call to global function 'cos'
234 | let blendedPhase = current.phase * 0.75 + previous.phase * 0.25
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
| `- error: no exact matches in call to global function 'cos'
237 | imag: magnitude * sin(blendedPhase))
238 | }
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:236:41: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
234 | let blendedPhase = current.phase * 0.75 + previous.phase * 0.25
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
237 | imag: magnitude * sin(blendedPhase))
238 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:237:41: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
237 | imag: magnitude * sin(blendedPhase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
238 | }
239 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:389:38: error: no exact matches in call to global function 'cos'
387 | while length <= count {
388 | let angle = (inverse ? 2 : -2) * Float.pi / Float(length)
389 | let root = Complex(real: cos(angle), imag: sin(angle))
| `- error: no exact matches in call to global function 'cos'
390 | let half = length / 2
391 | var start = 0
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:389:56: error: no exact matches in call to global function 'sin'
387 | while length <= count {
388 | let angle = (inverse ? 2 : -2) * Float.pi / Float(length)
389 | let root = Complex(real: cos(angle), imag: sin(angle))
| `- error: no exact matches in call to global function 'sin'
390 | let half = length / 2
391 | var start = 0
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:431:9: error: cannot convert return expression of type 'Double' to return type 'Float'
429 |
430 | var magnitude: Float {
431 | sqrt(real * real + imag * imag)
| `- error: cannot convert return expression of type 'Double' to return type 'Float'
432 | }
433 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:431:26: error: cannot convert value of type 'Float' to expected argument type 'Double'
429 |
430 | var magnitude: Float {
431 | sqrt(real * real + imag * imag)
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
432 | }
433 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:435:9: error: no exact matches in call to global function 'atan2'
433 |
434 | var phase: Float {
435 | atan2(imag, real)
| |- error: no exact matches in call to global function 'atan2'
| `- note: candidate has partially matching parameter list (CGFloat, CGFloat)
436 | }
437 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:88:8: note: candidate has partially matching parameter list (Double, Double)
86 | long double atanl(long double __x);
87 |
88 | double atan2(double __y, double __x);
| `- note: candidate has partially matching parameter list (Double, Double)
89 | float atan2f(float __y, float __x);
90 | long double atan2l(long double __y, long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:435:9: error: no 'atan2' candidates produce the expected contextual result type 'Float'
433 |
434 | var phase: Float {
435 | atan2(imag, real)
| `- error: no 'atan2' candidates produce the expected contextual result type 'Float'
436 | }
437 | }
Foundation.atan2:1:13: note: 'atan2' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func atan2(_ lhs: CGFloat, _ rhs: CGFloat) -> CGFloat
| `- note: 'atan2' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:88:8: note: 'atan2' produces 'Double', not the expected contextual result type 'Float'
86 | long double atanl(long double __x);
87 |
88 | double atan2(double __y, double __x);
| `- note: 'atan2' produces 'Double', not the expected contextual result type 'Float'
89 | float atan2f(float __y, float __x);
90 | long double atan2l(long double __y, long double __x);
[20/77] Compiling Choir ProsodyFeatures.swift
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:197:29: error: no exact matches in call to instance method 'append'
195 | // Exponential scaling to approximate inverse Mel
196 | let linearValue = Float(frequency / 4000.0)
197 | linearFrame.append(exp(linearValue))
| `- error: no exact matches in call to instance method 'append'
198 | }
199 |
Swift.Array.append:2:33: note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
1 | generic struct Array {
2 | @inlinable public mutating func append(_ newElement: __owned Element)}
| `- note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
3 |
Swift.RangeReplaceableCollection.append:2:33: note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
1 | protocol RangeReplaceableCollection {
2 | @inlinable public mutating func append(_ newElement: __owned Self.Element)}
| `- note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
3 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:197:36: error: no exact matches in call to global function 'exp'
195 | // Exponential scaling to approximate inverse Mel
196 | let linearValue = Float(frequency / 4000.0)
197 | linearFrame.append(exp(linearValue))
| `- error: no exact matches in call to global function 'exp'
198 | }
199 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:57: error: no exact matches in call to global function 'cos'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| `- error: no exact matches in call to global function 'cos'
219 | complexFrame.append(complex)
220 | }
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:87: error: no exact matches in call to global function 'sin'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| `- error: no exact matches in call to global function 'sin'
219 | complexFrame.append(complex)
220 | }
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:85: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
219 | complexFrame.append(complex)
220 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:55: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
219 | complexFrame.append(complex)
220 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:237:43: error: no exact matches in call to global function 'sin'
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
237 | imag: magnitude * sin(blendedPhase))
| `- error: no exact matches in call to global function 'sin'
238 | }
239 | }
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:236:43: error: no exact matches in call to global function 'cos'
234 | let blendedPhase = current.phase * 0.75 + previous.phase * 0.25
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
| `- error: no exact matches in call to global function 'cos'
237 | imag: magnitude * sin(blendedPhase))
238 | }
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:236:41: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
234 | let blendedPhase = current.phase * 0.75 + previous.phase * 0.25
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
237 | imag: magnitude * sin(blendedPhase))
238 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:237:41: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
237 | imag: magnitude * sin(blendedPhase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
238 | }
239 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:389:38: error: no exact matches in call to global function 'cos'
387 | while length <= count {
388 | let angle = (inverse ? 2 : -2) * Float.pi / Float(length)
389 | let root = Complex(real: cos(angle), imag: sin(angle))
| `- error: no exact matches in call to global function 'cos'
390 | let half = length / 2
391 | var start = 0
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:389:56: error: no exact matches in call to global function 'sin'
387 | while length <= count {
388 | let angle = (inverse ? 2 : -2) * Float.pi / Float(length)
389 | let root = Complex(real: cos(angle), imag: sin(angle))
| `- error: no exact matches in call to global function 'sin'
390 | let half = length / 2
391 | var start = 0
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:431:9: error: cannot convert return expression of type 'Double' to return type 'Float'
429 |
430 | var magnitude: Float {
431 | sqrt(real * real + imag * imag)
| `- error: cannot convert return expression of type 'Double' to return type 'Float'
432 | }
433 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:431:26: error: cannot convert value of type 'Float' to expected argument type 'Double'
429 |
430 | var magnitude: Float {
431 | sqrt(real * real + imag * imag)
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
432 | }
433 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:435:9: error: no exact matches in call to global function 'atan2'
433 |
434 | var phase: Float {
435 | atan2(imag, real)
| |- error: no exact matches in call to global function 'atan2'
| `- note: candidate has partially matching parameter list (CGFloat, CGFloat)
436 | }
437 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:88:8: note: candidate has partially matching parameter list (Double, Double)
86 | long double atanl(long double __x);
87 |
88 | double atan2(double __y, double __x);
| `- note: candidate has partially matching parameter list (Double, Double)
89 | float atan2f(float __y, float __x);
90 | long double atan2l(long double __y, long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:435:9: error: no 'atan2' candidates produce the expected contextual result type 'Float'
433 |
434 | var phase: Float {
435 | atan2(imag, real)
| `- error: no 'atan2' candidates produce the expected contextual result type 'Float'
436 | }
437 | }
Foundation.atan2:1:13: note: 'atan2' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func atan2(_ lhs: CGFloat, _ rhs: CGFloat) -> CGFloat
| `- note: 'atan2' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:88:8: note: 'atan2' produces 'Double', not the expected contextual result type 'Float'
86 | long double atanl(long double __x);
87 |
88 | double atan2(double __y, double __x);
| `- note: 'atan2' produces 'Double', not the expected contextual result type 'Float'
89 | float atan2f(float __y, float __x);
90 | long double atan2l(long double __y, long double __x);
[21/77] Compiling Choir ProsodyPredictor.swift
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:197:29: error: no exact matches in call to instance method 'append'
195 | // Exponential scaling to approximate inverse Mel
196 | let linearValue = Float(frequency / 4000.0)
197 | linearFrame.append(exp(linearValue))
| `- error: no exact matches in call to instance method 'append'
198 | }
199 |
Swift.Array.append:2:33: note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
1 | generic struct Array {
2 | @inlinable public mutating func append(_ newElement: __owned Element)}
| `- note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
3 |
Swift.RangeReplaceableCollection.append:2:33: note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
1 | protocol RangeReplaceableCollection {
2 | @inlinable public mutating func append(_ newElement: __owned Self.Element)}
| `- note: candidate expects value of type 'Float' for parameter #1 (got 'CGFloat')
3 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:197:36: error: no exact matches in call to global function 'exp'
195 | // Exponential scaling to approximate inverse Mel
196 | let linearValue = Float(frequency / 4000.0)
197 | linearFrame.append(exp(linearValue))
| `- error: no exact matches in call to global function 'exp'
198 | }
199 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:57: error: no exact matches in call to global function 'cos'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| `- error: no exact matches in call to global function 'cos'
219 | complexFrame.append(complex)
220 | }
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:87: error: no exact matches in call to global function 'sin'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| `- error: no exact matches in call to global function 'sin'
219 | complexFrame.append(complex)
220 | }
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:85: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
219 | complexFrame.append(complex)
220 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:218:55: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
216 | let phaseIndex = (frameIndex &* 131 &+ binIndex &* 197) % 1024
217 | let phase = Float(phaseIndex) / 1024 * 2 * .pi
218 | let complex = Complex(real: magnitude * cos(phase), imag: magnitude * sin(phase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
219 | complexFrame.append(complex)
220 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:237:43: error: no exact matches in call to global function 'sin'
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
237 | imag: magnitude * sin(blendedPhase))
| `- error: no exact matches in call to global function 'sin'
238 | }
239 | }
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:236:43: error: no exact matches in call to global function 'cos'
234 | let blendedPhase = current.phase * 0.75 + previous.phase * 0.25
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
| `- error: no exact matches in call to global function 'cos'
237 | imag: magnitude * sin(blendedPhase))
238 | }
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:236:41: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
234 | let blendedPhase = current.phase * 0.75 + previous.phase * 0.25
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
237 | imag: magnitude * sin(blendedPhase))
238 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:237:41: error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
235 | complexSpec[frameIndex][binIndex] = Complex(
236 | real: magnitude * cos(blendedPhase),
237 | imag: magnitude * sin(blendedPhase))
| |- error: binary operator '*' cannot be applied to operands of type 'Float' and 'CGFloat'
| `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
238 | }
239 | }
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:389:38: error: no exact matches in call to global function 'cos'
387 | while length <= count {
388 | let angle = (inverse ? 2 : -2) * Float.pi / Float(length)
389 | let root = Complex(real: cos(angle), imag: sin(angle))
| `- error: no exact matches in call to global function 'cos'
390 | let half = length / 2
391 | var start = 0
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:389:56: error: no exact matches in call to global function 'sin'
387 | while length <= count {
388 | let angle = (inverse ? 2 : -2) * Float.pi / Float(length)
389 | let root = Complex(real: cos(angle), imag: sin(angle))
| `- error: no exact matches in call to global function 'sin'
390 | let half = length / 2
391 | var start = 0
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:431:9: error: cannot convert return expression of type 'Double' to return type 'Float'
429 |
430 | var magnitude: Float {
431 | sqrt(real * real + imag * imag)
| `- error: cannot convert return expression of type 'Double' to return type 'Float'
432 | }
433 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:431:26: error: cannot convert value of type 'Float' to expected argument type 'Double'
429 |
430 | var magnitude: Float {
431 | sqrt(real * real + imag * imag)
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
432 | }
433 |
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:435:9: error: no exact matches in call to global function 'atan2'
433 |
434 | var phase: Float {
435 | atan2(imag, real)
| |- error: no exact matches in call to global function 'atan2'
| `- note: candidate has partially matching parameter list (CGFloat, CGFloat)
436 | }
437 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:88:8: note: candidate has partially matching parameter list (Double, Double)
86 | long double atanl(long double __x);
87 |
88 | double atan2(double __y, double __x);
| `- note: candidate has partially matching parameter list (Double, Double)
89 | float atan2f(float __y, float __x);
90 | long double atan2l(long double __y, long double __x);
/host/spi-builder-workspace/Sources/Choir/Models/Vocoder.swift:435:9: error: no 'atan2' candidates produce the expected contextual result type 'Float'
433 |
434 | var phase: Float {
435 | atan2(imag, real)
| `- error: no 'atan2' candidates produce the expected contextual result type 'Float'
436 | }
437 | }
Foundation.atan2:1:13: note: 'atan2' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func atan2(_ lhs: CGFloat, _ rhs: CGFloat) -> CGFloat
| `- note: 'atan2' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:88:8: note: 'atan2' produces 'Double', not the expected contextual result type 'Float'
86 | long double atanl(long double __x);
87 |
88 | double atan2(double __y, double __x);
| `- note: 'atan2' produces 'Double', not the expected contextual result type 'Float'
89 | float atan2f(float __y, float __x);
90 | long double atan2l(long double __y, long double __x);
[22/77] Compiling Choir G2PErrorAnalysis.swift
[23/77] Compiling Choir G2PEvaluation.swift
[24/77] Compiling Choir Heteronyms.swift
[25/77] Compiling Choir LinguisticFrontend.swift
[26/77] Compiling Choir NumberSpelling.swift
[27/77] Compiling Choir Phoneme.swift
[28/77] Compiling Choir PhonemeInventory.swift
[29/77] Compiling Choir Phonemizer.swift
[30/77] Compiling Choir PronunciationDictionary.swift
[31/77] Compiling Choir SSMLCParser.swift
[32/77] Compiling Choir ScriptureNormalizer.swift
[33/77] Compiling Choir SentenceSegmenter.swift
[34/77] Compiling Choir StressAssignment.swift
[35/77] Compiling Choir StressPredictor.swift
[36/77] Compiling Choir TextExpansions.swift
[37/77] Compiling Choir TextNormalizer.swift
[38/77] Compiling Choir BenchmarkHarness.swift
[39/77] Compiling Choir ReferenceDevice.swift
[40/77] Compiling Choir AssetCache.swift
[41/77] Compiling Choir LazyAssetStore.swift
[42/77] Compiling Choir SynthesisAudioCache.swift
[43/77] Compiling Choir Choir.swift
[44/77] Compiling Choir Errors.swift
[45/77] Compiling Choir SHA256.swift
[46/77] Compiling Choir SynthesisParameters.swift
[47/77] Compiling Choir Voice.swift
[48/77] Compiling Choir VoiceBlending.swift
[49/77] Compiling Choir ChoirDemo.swift
[50/77] Compiling Choir FormantAcousticModel.swift
[51/77] Compiling Choir FormantSynthesis.swift
[52/77] Compiling Choir FormantTable.swift
[53/77] Compiling Choir FormantVocoder.swift
[54/77] Compiling Choir BuiltInLexicon.swift
[55/77] Compiling Choir G2PDiagnostics.swift
[56/77] Emitting module Choir
[57/77] Compiling Choir ChoirTierOne.swift
[58/77] Compiling Choir AudioBuffer.swift
[59/77] Compiling Choir AudioEffectChain.swift
[60/77] Compiling Choir AudioEncoder.swift
[61/77] Compiling Choir AudioFilters.swift
[62/77] Compiling Choir AudioMastering.swift
[63/77] Compiling Choir FloatAudioBuffer.swift
[64/77] Compiling Choir TimelineAudioExporter.swift
[65/77] Compiling Choir VoiceQualityMetrics.swift
[66/77] Compiling Choir SynthesisEngine.swift
/host/spi-builder-workspace/Sources/Choir/VoiceSynthesis/SampleVoice.swift:318:29: error: cannot convert value of type 'Float' to expected argument type 'Double'
316 | let t = Float(i) / Float(safeSampleRate)
317 | let phase = 2.0 * .pi * frequency * t
318 | let value = sin(phase) * 0.5 // 0.5 amplitude for headroom
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
319 | samples.append(Int16(value * 32767.0))
320 | }
[67/77] Compiling Choir SynthesisInput.swift
/host/spi-builder-workspace/Sources/Choir/VoiceSynthesis/SampleVoice.swift:318:29: error: cannot convert value of type 'Float' to expected argument type 'Double'
316 | let t = Float(i) / Float(safeSampleRate)
317 | let phase = 2.0 * .pi * frequency * t
318 | let value = sin(phase) * 0.5 // 0.5 amplitude for headroom
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
319 | samples.append(Int16(value * 32767.0))
320 | }
[68/77] Compiling Choir SynthesisMetadata.swift
/host/spi-builder-workspace/Sources/Choir/VoiceSynthesis/SampleVoice.swift:318:29: error: cannot convert value of type 'Float' to expected argument type 'Double'
316 | let t = Float(i) / Float(safeSampleRate)
317 | let phase = 2.0 * .pi * frequency * t
318 | let value = sin(phase) * 0.5 // 0.5 amplitude for headroom
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
319 | samples.append(Int16(value * 32767.0))
320 | }
[69/77] Compiling Choir SynthesisPipeline.swift
/host/spi-builder-workspace/Sources/Choir/VoiceSynthesis/SampleVoice.swift:318:29: error: cannot convert value of type 'Float' to expected argument type 'Double'
316 | let t = Float(i) / Float(safeSampleRate)
317 | let phase = 2.0 * .pi * frequency * t
318 | let value = sin(phase) * 0.5 // 0.5 amplitude for headroom
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
319 | samples.append(Int16(value * 32767.0))
320 | }
[70/77] Compiling Choir SynthesisSession.swift
/host/spi-builder-workspace/Sources/Choir/VoiceSynthesis/SampleVoice.swift:318:29: error: cannot convert value of type 'Float' to expected argument type 'Double'
316 | let t = Float(i) / Float(safeSampleRate)
317 | let phase = 2.0 * .pi * frequency * t
318 | let value = sin(phase) * 0.5 // 0.5 amplitude for headroom
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
319 | samples.append(Int16(value * 32767.0))
320 | }
[71/77] Compiling Choir SampleVoice.swift
/host/spi-builder-workspace/Sources/Choir/VoiceSynthesis/SampleVoice.swift:318:29: error: cannot convert value of type 'Float' to expected argument type 'Double'
316 | let t = Float(i) / Float(safeSampleRate)
317 | let phase = 2.0 * .pi * frequency * t
318 | let value = sin(phase) * 0.5 // 0.5 amplitude for headroom
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
319 | samples.append(Int16(value * 32767.0))
320 | }
[72/77] Compiling Choir SimpleSynthesizer.swift
/host/spi-builder-workspace/Sources/Choir/VoiceSynthesis/SampleVoice.swift:318:29: error: cannot convert value of type 'Float' to expected argument type 'Double'
316 | let t = Float(i) / Float(safeSampleRate)
317 | let phase = 2.0 * .pi * frequency * t
318 | let value = sin(phase) * 0.5 // 0.5 amplitude for headroom
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
319 | samples.append(Int16(value * 32767.0))
320 | }
[73/77] Compiling Choir resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/Choir/VoiceSynthesis/SampleVoice.swift:318:29: error: cannot convert value of type 'Float' to expected argument type 'Double'
316 | let t = Float(i) / Float(safeSampleRate)
317 | let phase = 2.0 * .pi * frequency * t
318 | let value = sin(phase) * 0.5 // 0.5 amplitude for headroom
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
319 | samples.append(Int16(value * 32767.0))
320 | }
BUILD FAILURE 6.3 android