Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple of same speech vendor #304

Closed
davehorton opened this issue Aug 13, 2023 · 2 comments
Closed

Allow multiple of same speech vendor #304

davehorton opened this issue Aug 13, 2023 · 2 comments
Assignees

Comments

@davehorton
Copy link
Contributor

davehorton commented Aug 13, 2023

Currently, jambonz allows an account or SP user to create and use only one speech credential per user. For example, you could not create one speech credential for a nuance hosted speech service and a second for a nuance on-prem and then switch between them in your app. It would be desirable to be able to allow the user to create multiple different credentials from the same vendor and then switch between them in their app. This means being able to reference them by something other than just vendor name.

The desired solution would consist of the following

  • relax any database constraint that may currently exist that enforces uniqueness on a speech credential vendor name so that a user can add multiple of the same vendor
  • add a new optional field to the speech_credentials table, 'label', a varchar(64) which the user can optionally associate with a speech credential
  • change the verb-specifications such that an application can optionally specify a speech credential label instead of a vendor name

The idea is that this is backwards compatible, so that existing speech credential entries do not need to be updated (they will have a NULL value for label) but that an application can specify either a vendor or a label name in the synthesizer properties of the say and config verb. If a vendor is provided then the credential is selected by vendor (and if multiple rows exist for the vendor/account/SP a random row is used) while if the credential is selected by label then the speech credential is selected by label.

Suggested wireframe showing changes to the Speech Credential form below:

image

The "Label" label should have a question mark icon with popup text:

"Assign a unique label if you intend to use multiple credentials from this vendor"

The combination of {vendor, label} needs to be unique for an account and/or SP. I don't think we necessarily need to enforce this in the database but the API in jambonz-api-server should ensure this

@davehorton
Copy link
Contributor Author

Additionally to this requirement, when a user provides a label when provisioning a speech credential, then in the applications view where they specify the speech vendor to use for the application the dropdown list must now contain the full list of vendors + any label name that they provisioned for a speech credential.

@davehorton
Copy link
Contributor Author

merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants