@@ -30,7 +30,6 @@ public function testSupportsModel()
30
30
$ client = new ElevenLabsClient (
31
31
new MockHttpClient (),
32
32
'my-api-key ' ,
33
- 'https://api.elevenlabs.io/v1 ' ,
34
33
);
35
34
36
35
$ this ->assertTrue ($ client ->supports (new ElevenLabs (ElevenLabs::ELEVEN_MULTILINGUAL_V2 )));
@@ -53,7 +52,6 @@ public function testClientCannotPerformWithInvalidModel()
53
52
$ client = new ElevenLabsClient (
54
53
$ mockHttpClient ,
55
54
'my-api-key ' ,
56
- 'https://api.elevenlabs.io/v1 ' ,
57
55
);
58
56
59
57
$ payload = $ normalizer ->normalize (Audio::fromFile (\dirname (__DIR__ , 5 ).'/fixtures/audio.mp3 ' ));
@@ -69,7 +67,6 @@ public function testClientCannotPerformSpeechToTextRequestWithInvalidPayload()
69
67
$ client = new ElevenLabsClient (
70
68
new MockHttpClient (),
71
69
'my-api-key ' ,
72
- 'https://api.elevenlabs.io/v1 ' ,
73
70
);
74
71
75
72
$ this ->expectException (InvalidArgumentException::class);
@@ -90,7 +87,6 @@ public function testClientCanPerformSpeechToTextRequest()
90
87
$ client = new ElevenLabsClient (
91
88
$ httpClient ,
92
89
'my-api-key ' ,
93
- 'https://api.elevenlabs.io/v1 ' ,
94
90
);
95
91
96
92
$ payload = $ normalizer ->normalize (Audio::fromFile (\dirname (__DIR__ , 5 ).'/fixtures/audio.mp3 ' ));
@@ -112,7 +108,6 @@ public function testClientCanPerformSpeechToTextRequestWithExperimentalModel()
112
108
$ client = new ElevenLabsClient (
113
109
$ httpClient ,
114
110
'my-api-key ' ,
115
- 'https://api.elevenlabs.io/v1 ' ,
116
111
);
117
112
118
113
$ payload = $ normalizer ->normalize (Audio::fromFile (\dirname (__DIR__ , 5 ).'/fixtures/audio.mp3 ' ));
@@ -137,7 +132,6 @@ public function testClientCannotPerformTextToSpeechRequestWithoutValidPayload()
137
132
$ client = new ElevenLabsClient (
138
133
$ mockHttpClient ,
139
134
'my-api-key ' ,
140
- 'https://api.elevenlabs.io/v1 ' ,
141
135
);
142
136
143
137
$ this ->expectException (InvalidArgumentException::class);
@@ -165,7 +159,6 @@ public function testClientCanPerformTextToSpeechRequest()
165
159
$ client = new ElevenLabsClient (
166
160
$ httpClient ,
167
161
'my-api-key ' ,
168
- 'https://api.elevenlabs.io/v1 ' ,
169
162
);
170
163
171
164
$ client ->request (new ElevenLabs (ElevenLabs::ELEVEN_MULTILINGUAL_V2 , [
@@ -194,7 +187,6 @@ public function testClientCanPerformTextToSpeechRequestWhenVoiceKeyIsProvidedAsR
194
187
$ client = new ElevenLabsClient (
195
188
$ httpClient ,
196
189
'my-api-key ' ,
197
- 'https://api.elevenlabs.io/v1 ' ,
198
190
);
199
191
200
192
$ client ->request (new ElevenLabs (ElevenLabs::ELEVEN_MULTILINGUAL_V2 ), [
@@ -223,7 +215,6 @@ public function testClientCanPerformTextToSpeechRequestAsStream()
223
215
$ client = new ElevenLabsClient (
224
216
$ httpClient ,
225
217
'my-api-key ' ,
226
- 'https://api.elevenlabs.io/v1 ' ,
227
218
);
228
219
229
220
$ result = $ client ->request (new ElevenLabs (ElevenLabs::ELEVEN_MULTILINGUAL_V2 , [
@@ -254,7 +245,6 @@ public function testClientCanPerformTextToSpeechRequestAsStreamVoiceKeyIsProvide
254
245
$ client = new ElevenLabsClient (
255
246
$ httpClient ,
256
247
'my-api-key ' ,
257
- 'https://api.elevenlabs.io/v1 ' ,
258
248
);
259
249
260
250
$ result = $ client ->request (new ElevenLabs (ElevenLabs::ELEVEN_MULTILINGUAL_V2 ), [
0 commit comments