Skip to content

Commit 774f1be

Browse files
committed
ref
1 parent 6bdd9a2 commit 774f1be

File tree

9 files changed

+11
-12
lines changed

9 files changed

+11
-12
lines changed

docs/components/platform.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -569,17 +569,17 @@ Speech support can be enable using ``Symfony\AI\Platform\Speech\SpeechProviderLi
569569
Message::ofUser('Tina has one brother and one sister. How many sisters do Tina\'s siblings have?'),
570570
));
571571

572-
echo $answer->getSpeech('eleven_labs')->asBinary();
572+
echo $answer->getSpeech('elevenlabs')->asBinary();
573573

574574
When using the bundle, the configuration allows to configure models and voices::
575575

576576
ai:
577577
platform:
578-
eleven_labs:
578+
elevenlabs:
579579
api_key: '%env(ELEVEN_LABS_API_KEY)%'
580580

581581
speech:
582-
eleven_labs:
582+
elevenlabs:
583583
platform: 'ai.platform.elevenlabs'
584584
tts_model: 'eleven_multilingual_v2'
585585
tts_voice: '%env(ELEVEN_LABS_VOICE_IDENTIFIER)%'

examples/speech/agent-eleven-labs-speech-sts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@
5050
Message::ofUser(Audio::fromFile(dirname(__DIR__, 2).'/fixtures/audio.mp3'))
5151
));
5252

53-
echo $answer->getSpeech('eleven_labs')->asBinary();
53+
echo $answer->getSpeech('elevenlabs')->asBinary();

examples/speech/agent-eleven-labs-speech-tts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@
4444
Message::ofUser('Tina has one brother and one sister. How many sisters do Tina\'s siblings have?'),
4545
));
4646

47-
echo $answer->getSpeech('eleven_labs')->asBinary();
47+
echo $answer->getSpeech('elevenlabs')->asBinary();

src/ai-bundle/src/AiBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
use Symfony\AI\Platform\Speech\SpeechConfiguration;
8787
use Symfony\AI\Platform\Speech\SpeechListenerInterface;
8888
use Symfony\AI\Platform\Speech\SpeechProviderInterface;
89-
use Symfony\AI\Platform\SpeechAwarePlatformInterface;
89+
use Symfony\AI\Platform\Speech\SpeechAwarePlatformInterface;
9090
use Symfony\AI\Store\Bridge\AzureSearch\SearchStore as AzureSearchStore;
9191
use Symfony\AI\Store\Bridge\Cache\Store as CacheStore;
9292
use Symfony\AI\Store\Bridge\ChromaDb\Store as ChromaDbStore;

src/ai-bundle/tests/DependencyInjection/AiBundleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
use Symfony\AI\Platform\PlatformInterface;
3737
use Symfony\AI\Platform\Speech\SpeechListenerInterface;
3838
use Symfony\AI\Platform\Speech\SpeechProviderInterface;
39-
use Symfony\AI\Platform\SpeechAwarePlatformInterface;
39+
use Symfony\AI\Platform\Speech\SpeechAwarePlatformInterface;
4040
use Symfony\AI\Store\Bridge\AzureSearch\SearchStore as AzureStore;
4141
use Symfony\AI\Store\Bridge\Cache\Store as CacheStore;
4242
use Symfony\AI\Store\Bridge\ChromaDb\Store as ChromaDbStore;

src/platform/src/Bridge/ElevenLabs/ElevenLabsSpeechListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Symfony\AI\Platform\Message\MessageBag;
1717
use Symfony\AI\Platform\PlatformInterface;
1818
use Symfony\AI\Platform\Speech\SpeechListenerInterface;
19-
use Symfony\AI\Platform\SpeechAwarePlatformInterface;
19+
use Symfony\AI\Platform\Speech\SpeechAwarePlatformInterface;
2020

2121
/**
2222
* @author Guillaume Loulier <personal@guillaumeloulier.fr>

src/platform/src/Bridge/ElevenLabs/ElevenLabsSpeechProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Symfony\AI\Platform\Result\DeferredResult;
1717
use Symfony\AI\Platform\Speech\Speech;
1818
use Symfony\AI\Platform\Speech\SpeechProviderInterface;
19-
use Symfony\AI\Platform\SpeechAwarePlatformInterface;
19+
use Symfony\AI\Platform\Speech\SpeechAwarePlatformInterface;
2020

2121
/**
2222
* @author Guillaume Loulier <personal@guillaumeloulier.fr>
@@ -40,7 +40,7 @@ public function generate(DeferredResult $result, array $options): Speech
4040
...$options,
4141
]);
4242

43-
return new Speech($payload, $speechResult, 'eleven_labs');
43+
return new Speech($payload, $speechResult, 'elevenlabs');
4444
}
4545

4646
public function support(DeferredResult $result, array $options): bool

src/platform/src/Speech/SpeechAwarePlatform.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Symfony\AI\Platform\ModelCatalog\ModelCatalogInterface;
1515
use Symfony\AI\Platform\PlatformInterface;
1616
use Symfony\AI\Platform\Result\DeferredResult;
17-
use Symfony\AI\Platform\SpeechAwarePlatformInterface;
1817

1918
/**
2019
* @author Guillaume Loulier <personal@guillaumeloulier.fr>

src/platform/src/SpeechAwarePlatformInterface.php renamed to src/platform/src/Speech/SpeechAwarePlatformInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\AI\Platform;
12+
namespace Symfony\AI\Platform\Speech;
1313

1414
use Symfony\AI\Platform\Speech\SpeechConfiguration;
1515

0 commit comments

Comments
 (0)