To integrate Azure AI services with Azure Communication Services, you need to ensure that you are using the correct parameters and that your services are properly configured. The error message you are encountering, which states "Action failed due to a bad request to Cognitive Services," indicates that there might be an issue with the input parameters you are providing for the SSML source in your play source.
Make sure that:
- Your SSML text does not exceed the maximum character limit of 400 characters for Text-to-Speech prompts. If it does, consider using SSML for Text-to-Speech based play actions.
- You are using a Multi-service Cognitive Service resource, as this integration only supports that type of resource.
- You are operating within a supported region for Azure AI services.
If you have verified these points and are still facing issues, you may want to check the input parameters you are sending to ensure they conform to the expected format.
References: