Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does the new speech-to-text api offer support? #118

Open
xiaojian520 opened this issue Nov 14, 2023 · 1 comment
Open

Does the new speech-to-text api offer support? #118

xiaojian520 opened this issue Nov 14, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@xiaojian520
Copy link

Describe the feature or improvement you're requesting

https://platform.openai.com/docs/guides/text-to-speech

Additional context

No response

@orhanerday orhanerday added the enhancement New feature or request label Nov 14, 2023
@aruizna
Copy link

aruizna commented Nov 14, 2023

in OpenAi.php add
`

/**
 * @param $opts
 * @return bool|string
 * @deprecated
 */
public function speech($opts)
{
    $url = Url::speechUrl();
    $this->baseUrl($url);

    return $this->sendRequest($url, 'POST', $opts);
}

`

in Url.php add
`

/**
 * @param
 * @return string
 */
public static function speechUrl(): string
{
    return self::OPEN_AI_URL . "/audio/speech";
}

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants