Skip to content

Commit 79ddf87

Browse files
committed
ref
1 parent 16f5994 commit 79ddf87

File tree

7 files changed

+10
-5
lines changed

7 files changed

+10
-5
lines changed

docs/components/platform.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,9 @@ This allows fast and isolated testing of AI-powered features without relying on
501501

502502
This requires `cURL` and the `ext-curl` extension to be installed.
503503

504+
Adding Voice
505+
~~~~~~~~~~~~
506+
504507
Code Examples
505508
~~~~~~~~~~~~~
506509

src/agent/src/Agent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Symfony\AI\Platform\Message\MessageBag;
1818
use Symfony\AI\Platform\PlatformInterface;
1919
use Symfony\AI\Platform\Result\ResultInterface;
20-
use Symfony\AI\Voice\VoiceProviderInterface;
20+
use Symfony\AI\Platform\Voice\VoiceProviderInterface;
2121

2222
/**
2323
* @author Christopher Hertel <[email protected]>
@@ -37,7 +37,7 @@ final class Agent implements AgentInterface
3737
/**
3838
* @var VoiceProviderInterface[]
3939
*/
40-
private array $voiceProviders;
40+
private readonly array $voiceProviders;
4141

4242
/**
4343
* @param InputProcessorInterface[] $inputProcessors

src/agent/src/Output.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use Symfony\AI\Platform\Message\MessageBag;
1515
use Symfony\AI\Platform\Result\ResultInterface;
16+
use Symfony\AI\Platform\Voice\Voice;
1617

1718
/**
1819
* @author Christopher Hertel <[email protected]>

src/ai-bundle/src/AiBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
use Symfony\AI\Store\Indexer;
103103
use Symfony\AI\Store\IndexerInterface;
104104
use Symfony\AI\Store\StoreInterface;
105-
use Symfony\AI\Voice\Bridge\ElevenLabs\VoiceProvider as ElevenLabsVoiceProvider;
105+
use Symfony\AI\Voice\Bridge\ElevenLabs\ElevenLabsVoiceProvider as ElevenLabsVoiceProvider;
106106
use Symfony\AI\Voice\VoiceProviderInterface;
107107
use Symfony\Component\Clock\ClockInterface;
108108
use Symfony\Component\Config\Definition\Configurator\DefinitionConfigurator;

src/platform/src/Bridge/ElevenLabs/VoiceProvider.php renamed to src/platform/src/Bridge/ElevenLabs/ElevenLabsVoiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/**
2121
* @author Guillaume Loulier <[email protected]>
2222
*/
23-
final class VoiceProvider implements VoiceProviderInterface, VoiceListenerInterface
23+
final class ElevenLabsVoiceProvider implements VoiceProviderInterface, VoiceListenerInterface
2424
{
2525
public const ELEVEN_LABS_STT_MODEL = 'eleven_labs.stt_model';
2626

src/platform/src/Platform.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use Symfony\AI\Platform\ModelCatalog\ModelCatalogInterface;
1919
use Symfony\AI\Platform\Result\DeferredResult;
2020
use Symfony\AI\Platform\Result\RawResultInterface;
21+
use Symfony\AI\Platform\Voice\VoiceListenerInterface;
2122

2223
/**
2324
* @author Christopher Hertel <[email protected]>

src/platform/tests/Bridge/ElevenLabs/VoiceProviderTest.php renamed to src/platform/tests/Bridge/ElevenLabs/ElevenLabsVoiceProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515

16-
final class VoiceProviderTest extends TestCase
16+
final class ElevenLabsVoiceProviderTest extends TestCase
1717
{
1818
}

0 commit comments

Comments
 (0)