Nobody from AWS or the forum can answer?
The error message seems to indicate a misconfiguration of the aws cli itself rather than an error in the command.
My hunch is that you may have specified mp3 as the general output format when running aws configure.
To solve this issue, simply rerun aws configure and specify any of the valid output formats e.g. json when prompted for the desired format.
Take a look at the documentation for all valid values - https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html#cli-configure-quickstart-config]
Hi and thank you
Still the same issue. This isn't a codec issue is it?
AWS Access Key ID [****************SCHI]: XXXXXXXXXXXX
AWS Secret Access Key [****************6Sp/]: XXXXXXXXXXXX
Default region name [us-east-1]: us-east-1
Default output format [mp3]: mp3
C:\WINDOWS\system32>aws polly synthesize-speech ^
More? --output-format mp3 ^
More? --voice-id Joanna ^
More? --text "Hello" ^
Unknown output type: mp3
Let me rephrase what my colleague said: "Default output format" that you configure using
aws configure command should not be set to mp3 (Polly does not use it to determine the output format of the audio, it uses the argument --output-format that you pass along with the synthesize speech command). The output format that you see when running
aws configure should be set to one of the following: json, yaml, yaml-stream, text, table (see the documentation https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html#cli-configure-quickstart-format - section Output format).
Hope this will help ;)
Jacek - AWS Polly.
Thanks once more. You have to admit, it is just a little funny when the prompt asking you for an output format during the configure ends with "mp3". Like having a batch file that prompts for user entry with y/n but will not take y or n as input.
Anyway, the file was created this time, no errors. however, no playback:
Code: -1 (FFFFFFFF)
Message: File was not found.
Ok this is a little crazy, but now it works. For consistency, I was running the commands from a simple batch file. The file would be created but would not play. No error messages during creation, only the one above during playback. As I looked at my batch file I decided for convenience to change the path to my D drive. Ran batch again and this time it worked. No explanation for this. So i copied the file to System32, where i was originally running the commands, and it wouldn't open/play.
So for some security related reason, I'm guessing, the file will not play there.
Debian 11 fails status check with instance type i3asked 4 months ago
Error when creating S3 bucket using aws cli - Unknown options: --object-ownership, BucketOwnerEnforcedasked 4 months ago
aws cli commands hang on outputasked 7 months ago
Unknown parameter in LifecyclePolicies: TransitionToPrimaryStorageClass with AWS CLI in EFSAccepted Answerasked 8 months ago
Running aws cli command in Cloudformation failsAccepted Answerasked 19 days ago
AWS step function giving error, when I had included the "Parameter" tagasked 3 months ago
DB instance in AWS LightSail shows "unknown"asked 5 months ago
MP3 (Audio) files uploaded to S3 are unplayable - how to correctly upload audio to S3?asked 4 months ago
aws lex custom slot type with regex fails when using : characterasked 3 months ago
AWS CLI MP3 not recognized. Please helpasked 2 years ago