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

45 lines (44 loc) 1.73 kB
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs"; import * as core from "../../../../core/index.mjs"; import * as Phonic from "../../../index.mjs"; export declare namespace VoicesClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class VoicesClient { protected readonly _options: NormalizedClientOptionsWithAuth<VoicesClient.Options>; constructor(options?: VoicesClient.Options); /** * Returns all available voices for a model. * * @param {Phonic.VoicesListRequest} request * @param {VoicesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Phonic.BadRequestError} * @throws {@link Phonic.UnauthorizedError} * @throws {@link Phonic.InternalServerError} * * @example * await client.voices.list({ * model: "merritt" * }) */ list(request: Phonic.VoicesListRequest, requestOptions?: VoicesClient.RequestOptions): core.HttpResponsePromise<Phonic.VoicesListResponse>; private __list; /** * Returns a voice by ID. * * @param {string} id - The ID of the voice to get. * @param {VoicesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Phonic.UnauthorizedError} * @throws {@link Phonic.NotFoundError} * * @example * await client.voices.get("id") */ get(id: string, requestOptions?: VoicesClient.RequestOptions): core.HttpResponsePromise<Phonic.VoicesGetResponse>; private __get; }