fix(backend): update Unreal Speech API to v8

This commit is contained in:
Toran Bruce Richards
2025-06-24 21:25:21 +01:00
parent fb18ddf95d
commit 64522e9b28
2 changed files with 5 additions and 5 deletions

View File

@@ -35,8 +35,8 @@ class UnrealTextToSpeechBlock(Block):
)
voice_id: str = SchemaField(
description="The voice ID to use for text-to-speech conversion",
placeholder="Scarlett",
default="Scarlett",
placeholder="Sierra",
default="Sierra",
)
credentials: CredentialsMetaInput[
Literal[ProviderName.UNREAL_SPEECH], Literal["api_key"]
@@ -58,7 +58,7 @@ class UnrealTextToSpeechBlock(Block):
output_schema=UnrealTextToSpeechBlock.Output,
test_input={
"text": "This is a test of the text to speech API.",
"voice_id": "Scarlett",
"voice_id": "Sierra",
"credentials": TEST_CREDENTIALS_INPUT,
},
test_output=[("mp3_url", "https://example.com/test.mp3")],
@@ -74,7 +74,7 @@ class UnrealTextToSpeechBlock(Block):
def call_unreal_speech_api(
api_key: SecretStr, text: str, voice_id: str
) -> dict[str, Any]:
url = "https://api.v7.unrealspeech.com/speech"
url = "https://api.v8.unrealspeech.com/speech"
headers = {
"Authorization": f"Bearer {api_key.get_secret_value()}",
"Content-Type": "application/json",

View File

@@ -13,7 +13,7 @@ The block sends the provided text and voice selection to the Unreal Speech API.
| Input | Description |
|-------|-------------|
| Text | The text you want to convert into speech. This could be a sentence, paragraph, or any written content you'd like to hear spoken aloud. |
| Voice ID | The identifier for the voice you want to use for the speech. By default, it uses a voice called "Scarlett," but you can change this to other available voices. |
| Voice ID | The identifier for the voice you want to use for the speech. By default, it uses a voice called "Sierra," but you can change this to other available voices. |
| API Key | Your personal key to access the Unreal Speech API. This is kept secret and secure. |
### Outputs