@@ -89,8 +89,8 @@ public function testClientCanPerformSpeechToTextRequest()
89
89
90
90
$ client = new ElevenLabsClient (
91
91
$ httpClient ,
92
- 'https://api.elevenlabs.io/v1 ' ,
93
92
'my-api-key ' ,
93
+ 'https://api.elevenlabs.io/v1 ' ,
94
94
);
95
95
96
96
$ payload = $ normalizer ->normalize (Audio::fromFile (\dirname (__DIR__ , 5 ).'/fixtures/audio.mp3 ' ));
@@ -114,8 +114,8 @@ public function testClientCannotPerformTextToSpeechRequestWithoutValidPayload()
114
114
115
115
$ client = new ElevenLabsClient (
116
116
$ mockHttpClient ,
117
- 'https://api.elevenlabs.io/v1 ' ,
118
117
'my-api-key ' ,
118
+ 'https://api.elevenlabs.io/v1 ' ,
119
119
);
120
120
121
121
$ this ->expectException (InvalidArgumentException::class);
@@ -142,8 +142,8 @@ public function testClientCanPerformTextToSpeechRequest()
142
142
143
143
$ client = new ElevenLabsClient (
144
144
$ httpClient ,
145
- 'https://api.elevenlabs.io/v1 ' ,
146
145
'my-api-key ' ,
146
+ 'https://api.elevenlabs.io/v1 ' ,
147
147
);
148
148
149
149
$ client ->request (new ElevenLabs (ElevenLabs::ELEVEN_MULTILINGUAL_V2 , [
@@ -171,8 +171,8 @@ public function testClientCanPerformTextToSpeechRequestWhenVoiceKeyIsProvidedAsR
171
171
172
172
$ client = new ElevenLabsClient (
173
173
$ httpClient ,
174
- 'https://api.elevenlabs.io/v1 ' ,
175
174
'my-api-key ' ,
175
+ 'https://api.elevenlabs.io/v1 ' ,
176
176
);
177
177
178
178
$ client ->request (new ElevenLabs (ElevenLabs::ELEVEN_MULTILINGUAL_V2 ), [
@@ -200,8 +200,8 @@ public function testClientCanPerformTextToSpeechRequestAsStream()
200
200
201
201
$ client = new ElevenLabsClient (
202
202
$ httpClient ,
203
- 'https://api.elevenlabs.io/v1 ' ,
204
203
'my-api-key ' ,
204
+ 'https://api.elevenlabs.io/v1 ' ,
205
205
);
206
206
207
207
$ result = $ client ->request (new ElevenLabs (ElevenLabs::ELEVEN_MULTILINGUAL_V2 , [
@@ -231,8 +231,8 @@ public function testClientCanPerformTextToSpeechRequestAsStreamVoiceKeyIsProvide
231
231
232
232
$ client = new ElevenLabsClient (
233
233
$ httpClient ,
234
- 'https://api.elevenlabs.io/v1 ' ,
235
234
'my-api-key ' ,
235
+ 'https://api.elevenlabs.io/v1 ' ,
236
236
);
237
237
238
238
$ result = $ client ->request (new ElevenLabs (ElevenLabs::ELEVEN_MULTILINGUAL_V2 ), [
0 commit comments