Main Content

clearOptions

Remove all server options

Since R2023a

    Description

    clearOptions(clientObj) removes all user-specified server options from the speechClient object.

    example

    Examples

    collapse all

    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

    collapse all

    Client object, specified as an object returned by speechClient. Server options are valid only for client objects that interface with third-party speech services (Google®, IBM®, Microsoft®, or Amazon®).

    Version History

    Introduced in R2023a