File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ public class ElevenLabsSDK {
10
10
private enum Constants {
11
11
static let defaultApiOrigin = " wss://api.elevenlabs.io "
12
12
static let defaultApiPathname = " /v1/convai/conversation?agent_id= "
13
+ static let inputSampleRate : Double = 16000
13
14
static let sampleRate : Double = 16000
14
15
static let ioBufferDuration : Double = 0.005
15
16
static let volumeUpdateInterval : TimeInterval = 0.1
@@ -581,7 +582,7 @@ public class ElevenLabsSDK {
581
582
let connection = try await Connection . create ( config: config)
582
583
583
584
// Step 3: Create the audio input
584
- let input = try await Input . create ( sampleRate: Double ( connection . sampleRate ) )
585
+ let input = try await Input . create ( sampleRate: Constants . inputSampleRate )
585
586
586
587
// Step 4: Create the audio output
587
588
let output = try await Output . create ( sampleRate: Double ( connection. sampleRate) )
You can’t perform that action at this time.
0 commit comments