Skip to content

Commit ef06ebc

Browse files
authored
feat(audio): expose request builder methods (#889)
1 parent f494740 commit ef06ebc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Audio/PendingRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function asText(): TextResponse
5959
}
6060
}
6161

62-
protected function toTextToSpeechRequest(): TextToSpeechRequest
62+
public function toTextToSpeechRequest(): TextToSpeechRequest
6363
{
6464
if (! is_string($this->input)) {
6565
throw new InvalidArgumentException('Text-to-speech requires string input');
@@ -76,7 +76,7 @@ protected function toTextToSpeechRequest(): TextToSpeechRequest
7676
);
7777
}
7878

79-
protected function toSpeechToTextRequest(): SpeechToTextRequest
79+
public function toSpeechToTextRequest(): SpeechToTextRequest
8080
{
8181
if (! ($this->input instanceof Audio)) {
8282
throw new InvalidArgumentException('Speech-to-text requires Audio input');

0 commit comments

Comments
 (0)