diff --git a/csharp-examples.html b/csharp-examples.html
index e2c6fc6..5a6fc15 100644
--- a/csharp-examples.html
+++ b/csharp-examples.html
@@ -244,7 +244,7 @@ var client = new AudioClient(
);
BinaryData speech = await client.GenerateSpeechAsync(
- "I think so therefore, Today is a wonderful day to build something people love!",
+ "I think so therefore, Today is a wonderful day to grow something people love!",
GeneratedSpeechVoice.Alloy,
new SpeechGenerationOptions
{
diff --git a/dart-examples.html b/dart-examples.html
index abef5e0..7b60087 100644
--- a/dart-examples.html
+++ b/dart-examples.html
@@ -239,7 +239,7 @@ void main() async {
final speech = await OpenAI.instance.audio.createSpeech(
model: "tts-1",
- input: "I think so therefore, Today is a wonderful day to build something people love!",
+ input: "I think so therefore, Today is a wonderful day to grow something people love!",
voice: "alloy",
speed: 0.9,
);
diff --git a/elixir-examples.html b/elixir-examples.html
index 7db2df6..423cb5a 100644
--- a/elixir-examples.html
+++ b/elixir-examples.html
@@ -204,7 +204,7 @@ end)
config,
model: "tts-1",
voice: "alloy",
- input: "I think so therefore, Today is a wonderful day to build something people love!",
+ input: "I think so therefore, Today is a wonderful day to grow something people love!",
speed: 0.9
)
diff --git a/go-examples.html b/go-examples.html
index 627d99f..de13ba6 100644
--- a/go-examples.html
+++ b/go-examples.html
@@ -270,7 +270,7 @@ func main() {
response, err := client.Audio.Speech.New(context.Background(), openai.AudioSpeechNewParams{
Model: openai.F(openai.SpeechModelTTS1),
Voice: openai.F(openai.AudioSpeechNewParamsVoiceAlloy),
- Input: openai.F("I think so therefore, Today is a wonderful day to build something people love!"),
+ Input: openai.F("I think so therefore, Today is a wonderful day to grow something people love!"),
Speed: openai.Float(0.9),
})
diff --git a/java-examples.html b/java-examples.html
index 366c5d5..10e7c8a 100644
--- a/java-examples.html
+++ b/java-examples.html
@@ -272,7 +272,7 @@ public class TTSExample {
SpeechCreateParams params = SpeechCreateParams.builder()
.model(SpeechModel.TTS_1)
.voice(SpeechCreateParams.Voice.ALLOY)
- .input("I think so therefore, Today is a wonderful day to build something people love!")
+ .input("I think so therefore, Today is a wonderful day to grow something people love!")
.speed(0.9)
.build();
diff --git a/kotlin-examples.html b/kotlin-examples.html
index 56bc6f0..74edb52 100644
--- a/kotlin-examples.html
+++ b/kotlin-examples.html
@@ -266,7 +266,7 @@ suspend fun main() {
val speechRequest = SpeechRequest(
model = ModelId("tts-1"),
- input = "I think so therefore, Today is a wonderful day to build something people love!",
+ input = "I think so therefore, Today is a wonderful day to grow something people love!",
voice = Voice.Alloy,
speed = 0.9
)
diff --git a/languages/bash/index.html b/languages/bash/index.html
index 0ccb25a..f2b36d8 100644
--- a/languages/bash/index.html
+++ b/languages/bash/index.html
@@ -95,7 +95,7 @@ curl -s -X POST "https://speech.ai.unturf.com/v1/audio/speech" \
-d '{
"model": "tts-1",
"voice": "alloy",
- "input": "Hello from Bash! Today is a wonderful day to build something people love!"
+ "input": "Hello from Bash! Today is a wonderful day to grow something people love!"
}' \
--output speech.mp3
diff --git a/languages/commonlisp/tts.lisp b/languages/commonlisp/tts.lisp
new file mode 100644
index 0000000..4f89869
--- /dev/null
+++ b/languages/commonlisp/tts.lisp
@@ -0,0 +1,38 @@
+#!/usr/bin/env sbcl --script
+
+;;; Text-to-Speech Example
+;;; Uses Dexador to download audio file from TTS endpoint
+
+(load "~/quicklisp/setup.lisp")
+(ql:quickload '(:dexador :jonathan) :silent t)
+
+(defparameter *base-url* "https://speech.ai.unturf.com/v1/audio/speech")
+
+(defun generate-speech (text output-file)
+ "Generate speech from text and save to file"
+ (let ((payload (jonathan:to-json
+ (list :|model| "tts-1"
+ :|voice| "alloy"
+ :|speed| 0.9
+ :|input| text))))
+ (with-open-file (out output-file
+ :direction :output
+ :if-exists :supersede
+ :if-does-not-exist :create
+ :element-type '(unsigned-byte 8))
+ (let ((response (dex:post *base-url*
+ :headers '(("Content-Type" . "application/json"))
+ :content payload
+ :force-binary t)))
+ (write-sequence response out)))
+ (format t "Speech saved to: ~A~%" output-file)))
+
+;; Main execution
+(handler-case
+ (progn
+ (format t "Generating speech from TTS...~%~%")
+ (generate-speech
+ "I think so therefore, Today is a wonderful day to grow something people love!"
+ "speech.mp3"))
+ (error (e)
+ (format t "Error: ~A~%" e)))
diff --git a/nodejs-examples.html b/nodejs-examples.html
index b30bea8..bed2822 100644
--- a/nodejs-examples.html
+++ b/nodejs-examples.html
@@ -259,7 +259,7 @@ async function getSpeech() {
model: "tts-1",
voice: "alloy",
speed: 0.9,
- input: "I think so therefore, Today is a wonderful day to build something people love!"
+ input: "I think so therefore, Today is a wonderful day to grow something people love!"
});
response.stream_to_file("speech.mp3");
diff --git a/php-examples.html b/php-examples.html
index d7f9624..0b1f6f2 100644
--- a/php-examples.html
+++ b/php-examples.html
@@ -223,7 +223,7 @@ $client = OpenAI::factory()
$response = $client->audio()->speech([
'model' => 'tts-1',
'voice' => 'alloy',
- 'input' => 'I think so therefore, Today is a wonderful day to build something people love!',
+ 'input' => 'I think so therefore, Today is a wonderful day to grow something people love!',
'speed' => 0.9,
]);
diff --git a/python-examples.html b/python-examples.html
index 9d9edbc..da6c085 100644
--- a/python-examples.html
+++ b/python-examples.html
@@ -211,7 +211,7 @@ with client.audio.speech.with_streaming_response.create(
model="tts-1",
voice="alloy",
speed=0.9,
- input="I think so therefore, Today is a wonderful day to build something people love!"
+ input="I think so therefore, Today is a wonderful day to grow something people love!"
) as response:
response.stream_to_file("speech.mp3")
diff --git a/ruby-examples.html b/ruby-examples.html
index 9cb63ba..0062dea 100644
--- a/ruby-examples.html
+++ b/ruby-examples.html
@@ -212,7 +212,7 @@ response = client.audio.speech(
parameters: {
model: "tts-1",
voice: "alloy",
- input: "I think so therefore, Today is a wonderful day to build something people love!",
+ input: "I think so therefore, Today is a wonderful day to grow something people love!",
speed: 0.9
}
)
diff --git a/rust-examples.html b/rust-examples.html
index eebebd5..82b379a 100644
--- a/rust-examples.html
+++ b/rust-examples.html
@@ -282,7 +282,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let request = CreateSpeechRequestArgs::default()
.model(SpeechModel::Tts1)
.voice(Voice::Alloy)
- .input("I think so therefore, Today is a wonderful day to build something people love!")
+ .input("I think so therefore, Today is a wonderful day to grow something people love!")
.speed(0.9)
.build()?;
diff --git a/swift-examples.html b/swift-examples.html
index a8f4ffa..e730478 100644
--- a/swift-examples.html
+++ b/swift-examples.html
@@ -225,7 +225,7 @@ let service = OpenAIServiceFactory.service(
let parameters = AudioSpeechParameters(
model: .tts1,
- input: "I think so therefore, Today is a wonderful day to build something people love!",
+ input: "I think so therefore, Today is a wonderful day to grow something people love!",
voice: .alloy,
speed: 0.9
)