Skip to content

[text-to-speech] Using AudioFormat PCM in method synthesize throws exception accept=audio/l16, status: 406, error: rate parameter missing in mimetype audio/l16 #454

@roymitchley

Description

@roymitchley

I am trying to call the text-to-speech synthesize method with AudioFormat.PCM. This is giving me the exception accept=audio/l16, status: 406, error: rate parameter missing in mimetype audio/l16
com.ibm.watson.developer_cloud.service.exception.ForbiddenException: rate parameter missing in mimetype audio/l16

I can not see a way for me to pass the rate parameter as the method parameter for synthesize is a AudioFormat type that is a numeric.

It looks like a similar problem has been solved for speech-to-text service.

3a11f3f

I am using version 3.4.0

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions