From 64522e9b287a17e7b9962aac32c7cd739c857826 Mon Sep 17 00:00:00 2001 From: Toran Bruce Richards Date: Tue, 24 Jun 2025 21:25:21 +0100 Subject: [PATCH] fix(backend): update Unreal Speech API to v8 --- .../backend/backend/blocks/text_to_speech_block.py | 8 ++++---- docs/content/platform/blocks/text_to_speech_block.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/autogpt_platform/backend/backend/blocks/text_to_speech_block.py b/autogpt_platform/backend/backend/blocks/text_to_speech_block.py index 989dc54e12..dbaef7c9bb 100644 --- a/autogpt_platform/backend/backend/blocks/text_to_speech_block.py +++ b/autogpt_platform/backend/backend/blocks/text_to_speech_block.py @@ -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", diff --git a/docs/content/platform/blocks/text_to_speech_block.md b/docs/content/platform/blocks/text_to_speech_block.md index 9683d0a55d..fcd91f47e6 100644 --- a/docs/content/platform/blocks/text_to_speech_block.md +++ b/docs/content/platform/blocks/text_to_speech_block.md @@ -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