Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Archetapp committed Jan 9, 2025
1 parent 520073a commit 4801fe5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/ElevenLabs/Intramodular/ElevenLabs.Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ extension ElevenLabs.Client {
public func speech(
for text: String,
voiceID: String,
languageCode: String?,
voiceSettings: ElevenLabs.VoiceSettings,
model: ElevenLabs.Model
) async throws -> Data {
let requestBody = ElevenLabs.APISpecification.RequestBodies.SpeechRequest(
text: text,
languageCode: languageCode,
voiceSettings: voiceSettings,
model: model
)
Expand All @@ -57,12 +59,14 @@ extension ElevenLabs.Client {
public func speechToSpeech(
inputAudioURL: URL,
voiceID: String,
languageCode: String?,
voiceSettings: ElevenLabs.VoiceSettings,
model: ElevenLabs.Model
) async throws -> Data {
let input = ElevenLabs.APISpecification.RequestBodies.SpeechToSpeechInput(
voiceId: voiceID,
audioURL: inputAudioURL,
languageCode: languageCode,
model: model,
voiceSettings: voiceSettings
)
Expand Down

0 comments on commit 4801fe5

Please sign in to comment.