UNPKG

phonic

Version:

[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FPhonic-Co%2Fphonic-node) [![npm shield](htt

24 lines (23 loc) 1 kB
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as Phonic from "../../../index.js"; export declare namespace TtsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class TtsClient { protected readonly _options: NormalizedClientOptionsWithAuth<TtsClient.Options>; constructor(options?: TtsClient.Options); /** * Streams generated speech audio for the provided text. * * @throws {@link Phonic.BadRequestError} * @throws {@link Phonic.UnauthorizedError} * @throws {@link Phonic.ForbiddenError} * @throws {@link Phonic.InternalServerError} */ stream(request: Phonic.StreamTtsRequest, requestOptions?: TtsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>; private __stream; }