File tree Expand file tree Collapse file tree 2 files changed +18
-18
lines changed
Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 1313use Symfony \AI \Platform \Message \Message ;
1414use Symfony \AI \Platform \Message \MessageBag ;
1515
16- require_once dirname (__DIR__ ) . '/bootstrap.php ' ;
16+ require_once dirname (__DIR__ ). '/bootstrap.php ' ;
1717
1818$ platform = PlatformFactory::create (env ('GEMINI_API_KEY ' ), http_client ());
1919
3131 'speaker ' => 'Joe ' ,
3232 'voiceConfig ' => [
3333 'prebuiltVoiceConfig ' => [
34- 'voiceName ' => 'Kore '
35- ]
36- ]
34+ 'voiceName ' => 'Kore ' ,
35+ ],
36+ ],
3737 ],
3838 [
3939 'speaker ' => 'Jane ' ,
4040 'voiceConfig ' => [
4141 'prebuiltVoiceConfig ' => [
42- 'voiceName ' => 'Puck '
43- ]
44- ]
45- ]
46- ]
47- ]
48- ]
42+ 'voiceName ' => 'Puck ' ,
43+ ],
44+ ],
45+ ],
46+ ],
47+ ],
48+ ],
4949]);
5050
5151// Example call
5252// php examples/gemini/multi-speaker-voice.php > out.pcm
5353// ffmpeg -f s16le -ar 24000 -ac 1 -i out.pcm out.wav
5454
55- echo $ result ->asBinary () . \PHP_EOL ;
55+ echo $ result ->asBinary (). \PHP_EOL ;
Original file line number Diff line number Diff line change 1313use Symfony \AI \Platform \Message \Message ;
1414use Symfony \AI \Platform \Message \MessageBag ;
1515
16- require_once dirname (__DIR__ ) . '/bootstrap.php ' ;
16+ require_once dirname (__DIR__ ). '/bootstrap.php ' ;
1717
1818$ platform = PlatformFactory::create (env ('GEMINI_API_KEY ' ), http_client ());
1919
2525 'speechConfig ' => [
2626 'voiceConfig ' => [
2727 'prebuiltVoiceConfig ' => [
28- 'voiceName ' => 'Kore '
29- ]
30- ]
31- ]
28+ 'voiceName ' => 'Kore ' ,
29+ ],
30+ ],
31+ ],
3232]);
3333
3434// Example call
3535// php examples/gemini/single-speaker-voice.php > out.pcm
3636// ffmpeg -f s16le -ar 24000 -ac 1 -i out.pcm out.wav
3737
38- echo $ result ->asBinary () . \PHP_EOL ;
38+ echo $ result ->asBinary (). \PHP_EOL ;
You can’t perform that action at this time.
0 commit comments