setOptions
Description
setOptions(
sets one or more server options for the clientObj
,Name,Value
)speechClient
object.
Examples
Configure Server Options for Third-Party Speech Service
Create a speechClient
object that interfaces with the Google speech service.
clientObj = speechClient("Google");
Set the languageCode
server option for speech-to-text transcription.
setOptions(clientObj,"languageCode","en-US");
Use getOptions
to view the server options in the speechClient
object.
options = getOptions(clientObj)
options=1×2 cell array
{'languageCode'} {["en-US"]}
Use clearOptions
to remove the server option from the speechClient
object.
clearOptions(clientObj)
Input Arguments
clientObj
— Client object
speechClient
object
Client object, specified as an object returned by speechClient
. You can only set server options for client objects that
interface with third-party speech services (Google®, IBM®, Microsoft®, or Amazon®).
Name-Value Arguments
Specify server options as Name1,Value1,...,NameN,ValueN
, where
Name
is a string containing the server option and
Value
is the corresponding value.
For example, setOptions(clientObj,"languageCode","en-US")
sets the
languageCode
server option to "en-US"
.
Valid server options and values depend on the specific third-party API. See the documentation for the specific service for option names and values.
Version History
Introduced in R2023a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)