[BUG] minSpeaker / maxSpeaker setting equal not possible #31401
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
data-plane
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
API Spec link
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/Speech/SpeechToText/preview/2024-05-15-preview/speechtotext.json
API Spec version
2024-05-15-preview
Describe the bug
When setting the minSpeakers and maxSpeakers to the same value the api returns:
The value of min speakers should be less than the value of max speakers.
The description of the min and maxSpeakers however do not limit this and allow for equal values.
minCount: A hint for the minimum number of speakers for diarization. Must be smaller than or equal to the maxSpeakers property.
maxCount: The maximum number of speakers for diarization. Must be less than 36 and larger than or equal to the minSpeakers
Ideally the API would allow to specify exactly the amount of speakers -> allow for minSpeakers == maxSpeakers. Otherwise the description should be reworked.
Expected behavior
Allow the setting of minSpeaker = maxSpeaker to have a fixed speaker count.
Actual behavior
Throws an 400 error with
The value of min speakers should be less than the value of max speakers.
Reproduction Steps
Environment
No response
The text was updated successfully, but these errors were encountered: