diff --git a/README.md b/README.md index 5b640f0d5..e3b184908 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ * [Set Up OpenAI ChatGPT Language Processing](#set-up-language-processing-via-openai-chatgpt) * [Set Up OpenAI Embeddings Language Processing](#set-up-language-processing-via-openai-embeddings) * [Set Up OpenAI Whisper Language Processing](#set-up-language-processing-via-openai-whisper) +* [Set Up Azure AI Language Processing](#set-up-language-processing-via-microsoft-azure) * [Set Up Azure AI Computer Vision Image Processing](#set-up-image-processing-via-microsoft-azure) * [Set Up OpenAI DALLĀ·E Image Processing](#set-up-image-processing-via-openai) * [Set Up Azure Personalizer Recommended Content](#set-up-recommended-content-via-microsoft-azure-personalizer) @@ -288,14 +289,14 @@ Note that [OpenAI](https://platform.openai.com/docs/guides/speech-to-text) can c ### 1. Sign up for Azure services * [Register for a Microsoft Azure account](https://azure.microsoft.com/en-us/free/) or sign into your existing one. -* Log into your account and create a new [*Speech Service*](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/overview) Service if you do not already have one. It may take a minute for your account to fully populate with the default resource group to use. -* Click `Keys and Endpoint` in the left hand Resource Management menu to view the `Endpoint` URL for this resource. +* Log into your account and create a new [*Speech Service*](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/overview) if you do not already have one. It may take a minute for your account to fully populate with the default resource group to use. +* Click `Keys and Endpoint` in the left hand Resource Management menu to view the `Location/Region` for this resource. * Click the copy icon next to `KEY 1` to copy the API Key credential for this resource. ### 2. Configure Microsoft Azure API and Key under Tools > ClassifAI > Language Processing > Microsoft Azure -* In the `Endpoint URL` field, enter your `API endpoint`. -* In the `API Key` field, enter your `KEY 1`. +* In the `Endpoint URL` field, enter the following URL, replacing `LOCATION` with the `Location/Region` you found above: `https://LOCATION.tts.speech.microsoft.com/`. +* In the `API Key` field, enter your `KEY 1` copied from above. * Click **Save Changes** (the page will reload). * If connected successfully, a new dropdown with the label "Voices" will be displayed. * Select a voice as per your choice. diff --git a/includes/Classifai/Providers/Azure/TextToSpeech.php b/includes/Classifai/Providers/Azure/TextToSpeech.php index 803f000f1..8f7aa915e 100644 --- a/includes/Classifai/Providers/Azure/TextToSpeech.php +++ b/includes/Classifai/Providers/Azure/TextToSpeech.php @@ -159,7 +159,7 @@ public function setup_fields_sections() { 'label_for' => 'url', 'input_type' => 'text', 'default_value' => $default_settings['credentials']['url'], - 'description' => __( 'Supported protocol and hostname endpoints, e.g., https://REGION.api.cognitive.microsoft.com or https://EXAMPLE.cognitiveservices.azure.com. This can look different based on your setting choices in Azure.', 'classifai' ), + 'description' => __( 'Text to Speech region endpoint, e.g., https://LOCATION.tts.speech.microsoft.com/. Replace REGION with the region you selected for the resource in Azure.', 'classifai' ), ] );