client.history.getAll({ ...params }) -> ElevenLabs.GetSpeechHistoryResponse
-
-
-
Returns metadata about all your generated audio.
-
-
-
await client.history.getAll({ page_size: 1, voice_id: "pMsXgVXv3BLzUgSXRplE", });
-
-
-
request:
ElevenLabs.HistoryGetAllRequest
-
requestOptions:
History.RequestOptions
-
-
client.history.get(historyItemId) -> ElevenLabs.SpeechHistoryItemResponse
-
-
-
Returns information about an history item by its ID.
-
-
-
await client.history.get("ja9xsmfGhxYcymxGcOGB");
-
-
-
historyItemId:
string
— History item ID to be used, you can use GET https://api.elevenlabs.io/v1/history to receive a list of history items and their IDs.
-
requestOptions:
History.RequestOptions
-
-
client.history.delete(historyItemId) -> unknown
-
-
-
Delete a history item by its ID
-
-
-
await client.history.delete("ja9xsmfGhxYcymxGcOGB");
-
-
-
historyItemId:
string
— History item ID to be used, you can use GET https://api.elevenlabs.io/v1/history to receive a list of history items and their IDs.
-
requestOptions:
History.RequestOptions
-
-
client.history.getAudio(historyItemId) -> stream.Readable
-
-
-
Returns the audio of an history item.
-
-
-
await client.history.getAudio("ja9xsmfGhxYcymxGcOGB");
-
-
-
historyItemId:
string
— History item ID to be used, you can use GET https://api.elevenlabs.io/v1/history to receive a list of history items and their IDs.
-
requestOptions:
History.RequestOptions
-
-
client.history.download({ ...params }) -> void
-
-
-
Download one or more history items. If one history item ID is provided, we will return a single audio file. If more than one history item IDs are provided, we will provide the history items packed into a .zip file.
-
-
-
await client.history.download({ history_item_ids: ["ja9xsmfGhxYcymxGcOGB"], });
-
-
-
request:
ElevenLabs.DownloadHistoryRequest
-
requestOptions:
History.RequestOptions
-
-
client.samples.delete(voiceId, sampleId) -> unknown
-
-
-
Removes a sample by its ID.
-
-
-
await client.samples.delete("ja9xsmfGhxYcymxGcOGB", "pMsXgVXv3BLzUgSXRplE");
-
-
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
sampleId:
string
— Sample ID to be used, you can use GET https://api.elevenlabs.io/v1/voices/{voice_id} to list all the available samples for a voice.
-
requestOptions:
Samples.RequestOptions
-
-
client.samples.getAudio(voiceId, sampleId) -> stream.Readable
-
-
-
Returns the audio corresponding to a sample attached to a voice.
-
-
-
await client.samples.getAudio("ja9xsmfGhxYcymxGcOGB", "pMsXgVXv3BLzUgSXRplE");
-
-
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
sampleId:
string
— Sample ID to be used, you can use GET https://api.elevenlabs.io/v1/voices/{voice_id} to list all the available samples for a voice.
-
requestOptions:
Samples.RequestOptions
-
-
client.textToSpeech.convert(voiceId, { ...params }) -> stream.Readable
-
-
-
Converts text into speech using a voice of your choice and returns audio.
-
-
-
await client.textToSpeech.convert("pMsXgVXv3BLzUgSXRplE", { optimize_streaming_latency: "0", output_format: "mp3_22050_32", text: "It sure does, Jackie\u2026 My mama always said: \u201CIn Carolina, the air's so thick you can wear it!\u201D", voice_settings: { stability: 0.5, similarity_boost: 0.75, style: 0, }, });
-
-
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
request:
ElevenLabs.TextToSpeechRequest
-
requestOptions:
TextToSpeech.RequestOptions
-
-
client.textToSpeech.convertWithTimestamps(voiceId, { ...params }) -> unknown
-
-
-
Converts text into speech using a voice of your choice and returns JSON containing audio as a base64 encoded string together with information on when which character was spoken.
-
-
-
await client.textToSpeech.convertWithTimestamps("21m00Tcm4TlvDq8ikWAM", { text: "text", });
-
-
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
request:
ElevenLabs.TextToSpeechWithTimestampsRequest
-
requestOptions:
TextToSpeech.RequestOptions
-
-
client.textToSpeech.convertAsStream(voiceId, { ...params }) -> stream.Readable
-
-
-
Converts text into speech using a voice of your choice and returns audio as an audio stream.
-
-
-
await client.textToSpeech.convertAsStream("pMsXgVXv3BLzUgSXRplE", { optimize_streaming_latency: "0", output_format: "mp3_22050_32", text: "It sure does, Jackie\u2026 My mama always said: \u201CIn Carolina, the air's so thick you can wear it!\u201D", voice_settings: { stability: 0.1, similarity_boost: 0.3, style: 0.2, }, });
-
-
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
request:
ElevenLabs.StreamTextToSpeechRequest
-
requestOptions:
TextToSpeech.RequestOptions
-
-
client.textToSpeech.streamWithTimestamps(voiceId, { ...params }) -> void
-
-
-
Converts text into speech using a voice of your choice and returns a stream of JSONs containing audio as a base64 encoded string together with information on when which character was spoken.
-
-
-
await client.textToSpeech.streamWithTimestamps("21m00Tcm4TlvDq8ikWAM", { text: "text", });
-
-
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
request:
ElevenLabs.StreamTextToSpeechWithTimstampsRequest
-
requestOptions:
TextToSpeech.RequestOptions
-
-
client.voiceGeneration.generateParameters() -> ElevenLabs.VoiceGenerationParameterResponse
-
-
-
Get possible parameters for the /v1/voice-generation/generate-voice endpoint.
-
-
-
await client.voiceGeneration.generateParameters();
-
-
-
requestOptions:
VoiceGeneration.RequestOptions
-
-
client.voiceGeneration.generate({ ...params }) -> stream.Readable
-
-
-
Generate a random voice based on parameters. This method returns a generated_voice_id in the response header, and a sample of the voice in the body. If you like the generated voice call /v1/voice-generation/create-voice with the generated_voice_id to create the voice.
-
-
-
await client.voiceGeneration.generate({ gender: "female", accent: "american", age: "middle_aged", accent_strength: 2, text: "It sure does, Jackie\u2026 My mama always said: \u201CIn Carolina, the air's so thick you can wear it!\u201D", });
-
-
-
request:
ElevenLabs.GenerateVoiceRequest
-
requestOptions:
VoiceGeneration.RequestOptions
-
-
client.voiceGeneration.createAPreviouslyGeneratedVoice({ ...params }) -> ElevenLabs.Voice
-
-
-
Create a previously generated voice. This endpoint should be called after you fetched a generated_voice_id using /v1/voice-generation/generate-voice.
-
-
-
await client.voiceGeneration.createAPreviouslyGeneratedVoice({ voice_name: "Alex", voice_description: "Middle-aged American woman", generated_voice_id: "rbVJFu6SGRD1dbWpKnWl", });
-
-
-
request:
ElevenLabs.CreatePreviouslyGenertedVoiceRequest
-
requestOptions:
VoiceGeneration.RequestOptions
-
-
client.textToVoice.createPreviews({ ...params }) -> ElevenLabs.VoicePreviewsResponseModel
-
-
-
Generate a custom voice based on voice description. This method returns a list of voice previews. Each preview has a generated_voice_id and a sample of the voice as base64 encoded mp3 audio. If you like the a voice previewand want to create the voice call /v1/text-to-voice/create-voice-from-preview with the generated_voice_id to create the voice.
-
-
-
await client.textToVoice.createPreviews({ voice_description: "A sassy little squeaky mouse", text: "Every act of kindness, no matter how small, carries value and can make a difference, as no gesture of goodwill is ever wasted.", });
-
-
-
request:
ElevenLabs.VoicePreviewsRequestModel
-
requestOptions:
TextToVoice.RequestOptions
-
-
client.textToVoice.createVoiceFromPreview({ ...params }) -> ElevenLabs.Voice
-
-
-
Create a voice from previously generated voice preview. This endpoint should be called after you fetched a generated_voice_id using /v1/text-to-voice/create-previews.
-
-
-
await client.textToVoice.createVoiceFromPreview({ voice_name: "Little squeaky mouse", voice_description: "A sassy little squeaky mouse", generated_voice_id: "37HceQefKmEi3bGovXjL", });
-
-
-
request:
ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost
-
requestOptions:
TextToVoice.RequestOptions
-
-
client.user.getSubscription() -> ElevenLabs.Subscription
-
-
-
Gets extended information about the users subscription
-
-
-
await client.user.getSubscription();
-
-
-
requestOptions:
User.RequestOptions
-
-
client.user.get() -> ElevenLabs.User
-
-
-
Gets information about the user
-
-
-
await client.user.get();
-
-
-
requestOptions:
User.RequestOptions
-
-
client.voices.getAll({ ...params }) -> ElevenLabs.GetVoicesResponse
-
-
-
Gets a list of all available voices for a user.
-
-
-
await client.voices.getAll();
-
-
-
request:
ElevenLabs.VoicesGetAllRequest
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.getDefaultSettings() -> ElevenLabs.VoiceSettings
-
-
-
Gets the default settings for voices. "similarity_boost" corresponds to"Clarity + Similarity Enhancement" in the web app and "stability" corresponds to "Stability" slider in the web app.
-
-
-
await client.voices.getDefaultSettings();
-
-
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.getSettings(voiceId) -> ElevenLabs.VoiceSettings
-
-
-
Returns the settings for a specific voice. "similarity_boost" corresponds to"Clarity + Similarity Enhancement" in the web app and "stability" corresponds to "Stability" slider in the web app.
-
-
-
await client.voices.getSettings("2EiwWnXFnvU5JabPnv8n");
-
-
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.get(voiceId, { ...params }) -> ElevenLabs.Voice
-
-
-
Returns metadata about a specific voice.
-
-
-
await client.voices.get("29vD33N1CtxCmqQRPOHJ");
-
-
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
request:
ElevenLabs.VoicesGetRequest
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.delete(voiceId) -> unknown
-
-
-
Deletes a voice by its ID.
-
-
-
await client.voices.delete("29vD33N1CtxCmqQRPOHJ");
-
-
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.editSettings(voiceId, { ...params }) -> unknown
-
-
-
Edit your settings for a specific voice. "similarity_boost" corresponds to"Clarity + Similarity Enhancement" in the web app and "stability" corresponds to "Stability" slider in the web app.
-
-
-
await client.voices.editSettings("29vD33N1CtxCmqQRPOHJ", { stability: 0.1, similarity_boost: 0.3, style: 0.2, });
-
-
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
request:
ElevenLabs.VoiceSettings
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.add({ ...params }) -> ElevenLabs.AddVoiceIvcResponseModel
-
-
-
Add a new voice to your collection of voices in VoiceLab.
-
-
-
await client.voices.add({ files: [fs.createReadStream("/path/to/your/file")], name: "Alex", });
-
-
-
request:
ElevenLabs.BodyAddVoiceV1VoicesAddPost
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.edit(voiceId, { ...params }) -> unknown
-
-
-
Edit a voice created by you.
-
-
-
await client.voices.edit("JBFqnCBsd6RMkjVDRZzb", { name: "George", });
-
-
-
voiceId:
string
-
request:
ElevenLabs.BodyEditVoiceV1VoicesVoiceIdEditPost
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.addSharingVoice(publicUserId, voiceId, { ...params }) -> ElevenLabs.AddVoiceResponseModel
-
-
-
Add a sharing voice to your collection of voices in VoiceLab.
-
-
-
await client.voices.addSharingVoice( "63e84100a6bf7874ba37a1bab9a31828a379ec94b891b401653b655c5110880f", "sB1b5zUrxQVAFl2PhZFp", { new_name: "Alita", } );
-
-
-
publicUserId:
string
— Public user ID used to publicly identify ElevenLabs users.
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
request:
ElevenLabs.AddSharingVoiceRequest
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.getShared({ ...params }) -> ElevenLabs.GetLibraryVoicesResponse
-
-
-
Gets a list of shared voices.
-
-
-
await client.voices.getShared({ page_size: 1, gender: "female", language: "en", });
-
-
-
request:
ElevenLabs.VoicesGetSharedRequest
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.getSimilarLibraryVoices({ ...params }) -> ElevenLabs.GetLibraryVoicesResponse
-
-
-
Returns a list of shared voices similar to the provided audio sample. If neither similarity_threshold nor top_k is provided, we will apply default values.
-
-
-
await client.voices.getSimilarLibraryVoices({});
-
-
-
request:
ElevenLabs.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.getAProfilePage(handle) -> ElevenLabs.ProfilePageResponseModel
-
-
-
Gets a profile page based on a handle
-
-
-
await client.voices.getAProfilePage("talexgeorge");
-
-
-
handle:
string
— Handle for a VA's profile page
-
requestOptions:
Voices.RequestOptions
-
-
client.projects.getAll() -> ElevenLabs.GetProjectsResponse
-
-
-
Returns a list of your projects together and its metadata.
-
-
-
await client.projects.getAll();
-
-
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.add({ ...params }) -> ElevenLabs.AddProjectResponseModel
-
-
-
Creates a new project, it can be either initialized as blank, from a document or from a URL.
-
-
-
await client.projects.add({ name: "name", default_title_voice_id: "default_title_voice_id", default_paragraph_voice_id: "default_paragraph_voice_id", default_model_id: "default_model_id", });
-
-
-
request:
ElevenLabs.BodyAddProjectV1ProjectsAddPost
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.get(projectId) -> ElevenLabs.ProjectExtendedResponseModel
-
-
-
Returns information about a specific project. This endpoint returns more detailed information about a project than GET api.elevenlabs.io/v1/projects.
-
-
-
await client.projects.get("21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The project_id of the project, you can query GET https://api.elevenlabs.io/v1/projects to list all available projects.
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.editBasicProjectInfo(projectId, { ...params }) -> ElevenLabs.EditProjectResponseModel
-
-
-
Edits basic project info.
-
-
-
await client.projects.editBasicProjectInfo("21m00Tcm4TlvDq8ikWAM", { name: "name", default_title_voice_id: "default_title_voice_id", default_paragraph_voice_id: "default_paragraph_voice_id", });
-
-
-
projectId:
string
— The project_id of the project, you can query GET https://api.elevenlabs.io/v1/projects to list all available projects.
-
request:
ElevenLabs.BodyEditBasicProjectInfoV1ProjectsProjectIdPost
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.delete(projectId) -> unknown
-
-
-
Delete a project by its project_id.
-
-
-
await client.projects.delete("21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The project_id of the project, you can query GET https://api.elevenlabs.io/v1/projects to list all available projects.
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.convert(projectId) -> unknown
-
-
-
Starts conversion of a project and all of its chapters.
-
-
-
await client.projects.convert("21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The project_id of the project, you can query GET https://api.elevenlabs.io/v1/projects to list all available projects.
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.getSnapshots(projectId) -> ElevenLabs.ProjectSnapshotsResponse
-
-
-
Gets the snapshots of a project.
-
-
-
await client.projects.getSnapshots("21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The project_id of the project, you can query GET https://api.elevenlabs.io/v1/projects to list all available projects.
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.streamArchive(projectId, projectSnapshotId) -> void
-
-
-
Streams archive with project audio.
-
-
-
await client.projects.streamArchive("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The project_id of the project, you can query GET https://api.elevenlabs.io/v1/projects to list all available projects.
-
projectSnapshotId:
string
— The project_snapshot_id of the project snapshot. You can query GET /v1/projects/{project_id}/snapshots to list all available snapshots for a project.
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.addChapterToAProject(projectId, { ...params }) -> ElevenLabs.AddChapterResponseModel
-
-
-
Creates a new chapter either as blank or from a URL.
-
-
-
await client.projects.addChapterToAProject("21m00Tcm4TlvDq8ikWAM", { name: "name", });
-
-
-
projectId:
string
— The project_id of the project, you can query GET https://api.elevenlabs.io/v1/projects to list all available projects.
-
request:
ElevenLabs.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.updatePronunciationDictionaries(projectId, { ...params }) -> unknown
-
-
-
Updates the set of pronunciation dictionaries acting on a project. This will automatically mark text within this project as requiring reconverting where the new dictionary would apply or the old one no longer does.
-
-
-
await client.projects.updatePronunciationDictionaries("21m00Tcm4TlvDq8ikWAM", { pronunciation_dictionary_locators: [ { pronunciation_dictionary_id: "pronunciation_dictionary_id", version_id: "version_id", }, ], });
-
-
-
projectId:
string
— The project_id of the project, you can query GET https://api.elevenlabs.io/v1/projects to list all available projects.
-
request:
ElevenLabs.UpdatePronunciationDictionariesRequest
-
requestOptions:
Projects.RequestOptions
-
-
client.chapters.getAll(projectId) -> ElevenLabs.GetChaptersResponse
-
-
-
Returns a list of your chapters for a project together and its metadata.
-
-
-
await client.chapters.getAll("21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The project_id of the project, you can query GET https://api.elevenlabs.io/v1/projects to list all available projects.
-
requestOptions:
Chapters.RequestOptions
-
-
client.chapters.get(projectId, chapterId) -> ElevenLabs.ChapterResponse
-
-
-
Returns information about a specific chapter.
-
-
-
await client.chapters.get("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The project_id of the project, you can query GET https://api.elevenlabs.io/v1/projects to list all available projects.
-
chapterId:
string
— The chapter_id of the chapter. You can query GET https://api.elevenlabs.io/v1/projects/{project_id}/chapters to list all available chapters for a project.
-
requestOptions:
Chapters.RequestOptions
-
-
client.chapters.delete(projectId, chapterId) -> unknown
-
-
-
Delete a chapter by its chapter_id.
-
-
-
await client.chapters.delete("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The project_id of the project, you can query GET https://api.elevenlabs.io/v1/projects to list all available projects.
-
chapterId:
string
— The chapter_id of the chapter. You can query GET https://api.elevenlabs.io/v1/projects/{project_id}/chapters to list all available chapters for a project.
-
requestOptions:
Chapters.RequestOptions
-
-
client.chapters.convert(projectId, chapterId) -> unknown
-
-
-
Starts conversion of a specific chapter.
-
-
-
await client.chapters.convert("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The project_id of the project, you can query GET https://api.elevenlabs.io/v1/projects to list all available projects.
-
chapterId:
string
— The chapter_id of the chapter. You can query GET https://api.elevenlabs.io/v1/projects/{project_id}/chapters to list all available chapters for a project.
-
requestOptions:
Chapters.RequestOptions
-
-
client.chapters.getAllSnapshots(projectId, chapterId) -> ElevenLabs.ChapterSnapshotsResponse
-
-
-
Gets information about all the snapshots of a chapter, each snapshot corresponds can be downloaded as audio. Whenever a chapter is converted a snapshot will be automatically created.
-
-
-
await client.chapters.getAllSnapshots("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The project_id of the project, you can query GET https://api.elevenlabs.io/v1/projects to list all available projects.
-
chapterId:
string
— The chapter_id of the chapter. You can query GET https://api.elevenlabs.io/v1/projects/{project_id}/chapters to list all available chapters for a project.
-
requestOptions:
Chapters.RequestOptions
-
-
client.chapters.streamSnapshot(projectId, chapterId, chapterSnapshotId, { ...params }) -> void
-
-
-
Stream the audio from a chapter snapshot. Use
GET /v1/projects/{project_id}/chapters/{chapter_id}/snapshots
to return the chapter snapshots of a chapter.
-
-
-
await client.chapters.streamSnapshot("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The project_id of the project, you can query GET https://api.elevenlabs.io/v1/projects to list all available projects.
-
chapterId:
string
— The chapter_id of the chapter. You can query GET https://api.elevenlabs.io/v1/projects/{project_id}/chapters to list all available chapters for a project.
-
chapterSnapshotId:
string
— The chapter_snapshot_id of the chapter snapshot. You can query GET /v1/projects/{project_id}/chapters/{chapter_id}/snapshots to the all available snapshots for a chapter.
-
request:
ElevenLabs.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost
-
requestOptions:
Chapters.RequestOptions
-
-
client.dubbing.dubAVideoOrAnAudioFile({ ...params }) -> ElevenLabs.DoDubbingResponse
-
-
-
Dubs provided audio or video file into given language.
-
-
-
await client.dubbing.dubAVideoOrAnAudioFile({ target_lang: "target_lang", });
-
-
-
request:
ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost
-
requestOptions:
Dubbing.RequestOptions
-
-
client.dubbing.getDubbingProjectMetadata(dubbingId) -> ElevenLabs.DubbingMetadataResponse
-
-
-
Returns metadata about a dubbing project, including whether it's still in progress or not
-
-
-
await client.dubbing.getDubbingProjectMetadata("dubbing_id");
-
-
-
dubbingId:
string
— ID of the dubbing project.
-
requestOptions:
Dubbing.RequestOptions
-
-
client.dubbing.deleteDubbingProject(dubbingId) -> unknown
-
-
-
Deletes a dubbing project.
-
-
-
await client.dubbing.deleteDubbingProject("dubbing_id");
-
-
-
dubbingId:
string
— ID of the dubbing project.
-
requestOptions:
Dubbing.RequestOptions
-
-
client.dubbing.getTranscriptForDub(dubbingId, languageCode, { ...params }) -> unknown
-
-
-
Returns transcript for the dub as an SRT file.
-
-
-
await client.dubbing.getTranscriptForDub("dubbing_id", "language_code");
-
-
-
dubbingId:
string
— ID of the dubbing project.
-
languageCode:
string
— ID of the language.
-
request:
ElevenLabs.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetRequest
-
requestOptions:
Dubbing.RequestOptions
-
-
client.models.getAll() -> ElevenLabs.Model[]
-
-
-
Gets a list of available models.
-
-
-
await client.models.getAll();
-
-
-
requestOptions:
Models.RequestOptions
-
-
client.audioNative.create({ ...params }) -> ElevenLabs.AudioNativeCreateProjectResponseModel
-
-
-
Creates AudioNative enabled project, optionally starts conversion and returns project id and embeddable html snippet.
-
-
-
await client.audioNative.create({ name: "name", });
-
-
-
request:
ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost
-
requestOptions:
AudioNative.RequestOptions
-
-
client.usage.getCharactersUsageMetrics({ ...params }) -> ElevenLabs.UsageCharactersResponseModel
-
-
-
Returns the credit usage metrics for the current user or the entire workspace they are part of. The response will return a time axis with unix timestamps for each day and daily usage along that axis. The usage will be broken down by the specified breakdown type. For example, breakdown type "voice" will return the usage of each voice along the time axis.
-
-
-
await client.usage.getCharactersUsageMetrics({ start_unix: 1, end_unix: 1, });
-
-
-
request:
ElevenLabs.UsageGetCharactersUsageMetricsRequest
-
requestOptions:
Usage.RequestOptions
-
-
client.pronunciationDictionary.addFromFile({ ...params }) -> ElevenLabs.AddPronunciationDictionaryResponseModel
-
-
-
Creates a new pronunciation dictionary from a lexicon .PLS file
-
-
-
await client.pronunciationDictionary.addFromFile({ name: "name", });
-
-
-
request:
ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost
-
requestOptions:
PronunciationDictionary.RequestOptions
-
-
client.pronunciationDictionary.addRulesToThePronunciationDictionary(pronunciationDictionaryId, { ...params }) -> ElevenLabs.AddPronunciationDictionaryRulesResponseModel
-
-
-
Add rules to the pronunciation dictionary
-
-
-
await client.pronunciationDictionary.addRulesToThePronunciationDictionary("21m00Tcm4TlvDq8ikWAM", { rules: [ { type: "phoneme", string_to_replace: "rules", phoneme: "rules", alphabet: "rules", }, ], });
-
-
-
pronunciationDictionaryId:
string
— The id of the pronunciation dictionary
-
request:
ElevenLabs.PronunciationDictionary
-
requestOptions:
PronunciationDictionary.RequestOptions
-
-
client.pronunciationDictionary.removeRulesFromThePronunciationDictionary(pronunciationDictionaryId, { ...params }) -> ElevenLabs.RemovePronunciationDictionaryRulesResponseModel
-
-
-
Remove rules from the pronunciation dictionary
-
-
-
await client.pronunciationDictionary.removeRulesFromThePronunciationDictionary("21m00Tcm4TlvDq8ikWAM", { rule_strings: ["rule_strings"], });
-
-
-
pronunciationDictionaryId:
string
— The id of the pronunciation dictionary
-
request:
ElevenLabs.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost
-
requestOptions:
PronunciationDictionary.RequestOptions
-
-
client.pronunciationDictionary.download(dictionaryId, versionId) -> string
-
-
-
Get PLS file with a pronunciation dictionary version rules
-
-
-
await client.pronunciationDictionary.download("Fm6AvNgS53NXe6Kqxp3e", "KZFyRUq3R6kaqhKI146w");
-
-
-
dictionaryId:
string
— The id of the pronunciation dictionary
-
versionId:
string
— The id of the version of the pronunciation dictionary
-
requestOptions:
PronunciationDictionary.RequestOptions
-
-
client.pronunciationDictionary.get(pronunciationDictionaryId) -> ElevenLabs.GetPronunciationDictionaryMetadataResponse
-
-
-
Get metadata for a pronunciation dictionary
-
-
-
await client.pronunciationDictionary.get("Fm6AvNgS53NXe6Kqxp3e");
-
-
-
pronunciationDictionaryId:
string
— The id of the pronunciation dictionary
-
requestOptions:
PronunciationDictionary.RequestOptions
-
-
client.pronunciationDictionary.getAll({ ...params }) -> ElevenLabs.GetPronunciationDictionariesMetadataResponseModel
-
-
-
Get a list of the pronunciation dictionaries you have access to and their metadata
-
-
-
await client.pronunciationDictionary.getAll({ page_size: 1, });
-
-
-
request:
ElevenLabs.PronunciationDictionaryGetAllRequest
-
requestOptions:
PronunciationDictionary.RequestOptions
-
-
client.workspace.inviteUser({ ...params }) -> unknown
-
-
-
Sends an email invitation to join your workspace to the provided email. If the user doesn't have an account they will be prompted to create one. If the user accepts this invite they will be added as a user to your workspace and your subscription using one of your seats. This endpoint may only be called by workspace administrators.
-
-
-
await client.workspace.inviteUser({ email: "email", });
-
-
-
request:
ElevenLabs.BodyInviteUserV1WorkspaceInvitesAddPost
-
requestOptions:
Workspace.RequestOptions
-
-
client.workspace.deleteExistingInvitation({ ...params }) -> unknown
-
-
-
Invalidates an existing email invitation. The invitation will still show up in the inbox it has been delivered to, but activating it to join the workspace won't work. This endpoint may only be called by workspace administrators.
-
-
-
await client.workspace.deleteExistingInvitation({ email: "email", });
-
-
-
request:
ElevenLabs.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete
-
requestOptions:
Workspace.RequestOptions
-
-
client.workspace.updateMember({ ...params }) -> unknown
-
-
-
Updates attributes of a workspace member. Apart from the email identifier, all parameters will remain unchanged unless specified. This endpoint may only be called by workspace administrators.
-
-
-
await client.workspace.updateMember({ email: "email", });
-
-
-
request:
ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPost
-
requestOptions:
Workspace.RequestOptions
-
-
client.conversationalAi.getSignedUrl({ ...params }) -> ElevenLabs.ConversationSignedUrlResponseModel
-
-
-
Get a signed url to start a conversation with an agent with an agent that requires authorization
-
-
-
await client.conversationalAi.getSignedUrl({ agent_id: "21m00Tcm4TlvDq8ikWAM", });
-
-
-
request:
ElevenLabs.ConversationalAiGetSignedUrlRequest
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.createAgent({ ...params }) -> ElevenLabs.CreateAgentResponseModel
-
-
-
Create an agent from a config object
-
-
-
await client.conversationalAi.createAgent({ conversation_config: {}, });
-
-
-
request:
ElevenLabs.BodyCreateAgentV1ConvaiAgentsCreatePost
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getAgent(agentId) -> ElevenLabs.GetAgentResponseModel
-
-
-
Retrieve config for an agent
-
-
-
await client.conversationalAi.getAgent("21m00Tcm4TlvDq8ikWAM");
-
-
-
agentId:
string
— The id of an agent. This is returned on agent creation.
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.deleteAgent(agentId) -> Record
-
-
-
Delete an agent
-
-
-
await client.conversationalAi.deleteAgent("21m00Tcm4TlvDq8ikWAM");
-
-
-
agentId:
string
— The id of an agent. This is returned on agent creation.
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.updateAgent(agentId, { ...params }) -> ElevenLabs.GetAgentResponseModel
-
-
-
Patches an Agent settings
-
-
-
await client.conversationalAi.updateAgent("21m00Tcm4TlvDq8ikWAM");
-
-
-
agentId:
string
— The id of an agent. This is returned on agent creation.
-
request:
ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getWidget(agentId, { ...params }) -> ElevenLabs.GetAgentEmbedResponseModel
-
-
-
Retrieve the widget configuration for an agent
-
-
-
await client.conversationalAi.getWidget("21m00Tcm4TlvDq8ikWAM");
-
-
-
agentId:
string
— The id of an agent. This is returned on agent creation.
-
request:
ElevenLabs.ConversationalAiGetWidgetRequest
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getLink(agentId) -> ElevenLabs.GetAgentLinkResponseModel
-
-
-
Get the current link used to share the agent with others
-
-
-
await client.conversationalAi.getLink("21m00Tcm4TlvDq8ikWAM");
-
-
-
agentId:
string
— The id of an agent. This is returned on agent creation.
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.postAvatar(agentId, { ...params }) -> ElevenLabs.PostAgentAvatarResponseModel
-
-
-
Sets the avatar for an agent displayed in the widget
-
-
-
await client.conversationalAi.postAvatar("21m00Tcm4TlvDq8ikWAM", { avatar_file: fs.createReadStream("/path/to/your/file"), });
-
-
-
agentId:
string
-
request:
ElevenLabs.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getKnowledgeBaseDocument(agentId, documentationId) -> ElevenLabs.GetKnowledgeBaseReponseModel
-
-
-
Get details about a specific documentation making up the agent's knowledge base
-
-
-
await client.conversationalAi.getKnowledgeBaseDocument("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
agentId:
string
— The id of an agent. This is returned on agent creation.
-
documentationId:
string
— The id of a document from the agent's knowledge base. This is returned on document addition.
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.addAgentSecret(agentId, { ...params }) -> ElevenLabs.AddAgentSecretResponseModel
-
-
-
Uploads a file or reference a webpage for the agent to use as part of it's knowledge base
-
-
-
await client.conversationalAi.addAgentSecret("21m00Tcm4TlvDq8ikWAM", { name: "name", secret_value: "secret_value", });
-
-
-
agentId:
string
— The id of an agent. This is returned on agent creation.
-
request:
ElevenLabs.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.createKnowledgeBaseDocument(agentId, { ...params }) -> ElevenLabs.AddKnowledgeBaseResponseModel
-
-
-
Uploads a file or reference a webpage for the agent to use as part of it's knowledge base
-
-
-
await client.conversationalAi.createKnowledgeBaseDocument("21m00Tcm4TlvDq8ikWAM", {});
-
-
-
agentId:
string
-
request:
ElevenLabs.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getAgents({ ...params }) -> ElevenLabs.GetAgentsPageResponseModel
-
-
-
Returns a page of your agents and their metadata.
-
-
-
await client.conversationalAi.getAgents();
-
-
-
request:
ElevenLabs.ConversationalAiGetAgentsRequest
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getConversations({ ...params }) -> ElevenLabs.GetConversationsPageResponseModel
-
-
-
Get all conversations of agents that user owns. With option to restrict to a specific agent.
-
-
-
await client.conversationalAi.getConversations({ agent_id: "21m00Tcm4TlvDq8ikWAM", });
-
-
-
request:
ElevenLabs.ConversationalAiGetConversationsRequest
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getConversation(conversationId) -> ElevenLabs.GetConversationResponseModel
-
-
-
Get the details of a particular conversation
-
-
-
await client.conversationalAi.getConversation("21m00Tcm4TlvDq8ikWAM");
-
-
-
conversationId:
string
— The id of the conversation you're taking the action on.
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getConversationAudio(conversationId) -> void
-
-
-
Get the audio recording of a particular conversation
-
-
-
await client.conversationalAi.getConversationAudio("21m00Tcm4TlvDq8ikWAM");
-
-
-
conversationId:
string
— The id of the conversation you're taking the action on.
-
requestOptions:
ConversationalAi.RequestOptions
-
-