@runapi.ai/fish-audio
Advanced tools
+10
-1
| import { HttpClient, RequestOptions, BaseClient, ClientOptions } from '@runapi.ai/core'; | ||
| export { AuthenticationError, InsufficientCreditsError, NetworkError, NotFoundError, RateLimitError, RunApiError, ServiceUnavailableError, TimeoutError, ValidationError } from '@runapi.ai/core'; | ||
| /** A request-scoped reference audio sample. */ | ||
| interface ReferenceAudio { | ||
| /** Base64-encoded raw audio bytes. */ | ||
| audio: string; | ||
| /** Exact transcript of the reference audio. */ | ||
| text: string; | ||
| } | ||
| /** Parameters for Fish Audio text-to-speech generation. */ | ||
@@ -10,2 +17,4 @@ interface TextToSpeechParams { | ||
| text: string; | ||
| /** Optional request-scoped reference audio samples. */ | ||
| references?: ReferenceAudio[]; | ||
| } | ||
@@ -43,2 +52,2 @@ /** A RunAPI-managed MP3 audio result. */ | ||
| export { type Audio, FishAudioClient, type TextToSpeechParams, type TextToSpeechResponse }; | ||
| export { type Audio, FishAudioClient, type ReferenceAudio, type TextToSpeechParams, type TextToSpeechResponse }; |
+10
-1
| import { HttpClient, RequestOptions, BaseClient, ClientOptions } from '@runapi.ai/core'; | ||
| export { AuthenticationError, InsufficientCreditsError, NetworkError, NotFoundError, RateLimitError, RunApiError, ServiceUnavailableError, TimeoutError, ValidationError } from '@runapi.ai/core'; | ||
| /** A request-scoped reference audio sample. */ | ||
| interface ReferenceAudio { | ||
| /** Base64-encoded raw audio bytes. */ | ||
| audio: string; | ||
| /** Exact transcript of the reference audio. */ | ||
| text: string; | ||
| } | ||
| /** Parameters for Fish Audio text-to-speech generation. */ | ||
@@ -10,2 +17,4 @@ interface TextToSpeechParams { | ||
| text: string; | ||
| /** Optional request-scoped reference audio samples. */ | ||
| references?: ReferenceAudio[]; | ||
| } | ||
@@ -43,2 +52,2 @@ /** A RunAPI-managed MP3 audio result. */ | ||
| export { type Audio, FishAudioClient, type TextToSpeechParams, type TextToSpeechResponse }; | ||
| export { type Audio, FishAudioClient, type ReferenceAudio, type TextToSpeechParams, type TextToSpeechResponse }; |
+2
-2
@@ -6,3 +6,3 @@ { | ||
| }, | ||
| "version": "0.1.0", | ||
| "version": "0.1.1", | ||
| "description": "RunAPI Fish Audio SDK for speech generation in JavaScript, Python, Ruby, Go, Java, and PHP", | ||
@@ -34,3 +34,3 @@ "main": "./dist/index.js", | ||
| "dependencies": { | ||
| "@runapi.ai/core": "^0.2.13" | ||
| "@runapi.ai/core": "^0.2.14" | ||
| }, | ||
@@ -37,0 +37,0 @@ "devDependencies": { |
+2
-0
@@ -5,4 +5,6 @@ # Fish Audio JavaScript SDK for RunAPI | ||
| Pass optional `references` entries with base64-encoded raw audio bytes and exact transcripts for request-scoped voice matching. | ||
| Model details and pricing: https://runapi.ai/models/fish-audio | ||
| Licensed under the Apache License, Version 2.0. |
26700
3.01%215
4.37%10
25%Updated