Create Service Account Configuration

Use this API to create a service account configuration in the Speech Server.

HTTP Method

POST

URI

https://<serverip/hostname/FQDN>/speechconfig/rest/config

/<service_type>/serviceaccount

Valid Values

ASR, TTS, NLP

Content Type

Application/JSON, Application/XML

HTTP Success Code

201 Created - Successful

HTTP Failure Code

4xx - Client Error

5xx - Server Error

Parameters

Refer to the Data Structure for Speech Configuration section for the list of parameters.

Sample Request
<speechConfig>
 <serviceAccount>
    <providerName>dialogFlow</providerName>
    <name>cisco-dev-9gkv</name>
    <description>Provide description here</description>
    <isDefault>true</isDefault>
    <authKey>Key String</authKey>
    <properties>
        <property>
            <key>default-language</key>
            <value>en-US</value>
        </property>
    </properties>
    <languageSettings>
        <languageSetting>
            <code>en-US</code>
            <gender>Male</gender>
            <voiceName>Bob</voiceName>
        </languageSetting>
    </languageSettings>
 </serviceAccount>
</speechConfig>
Sample Error Response
<apiErrors>
    <apiError>
        <errorData>name</errorData>
        <errorMessage>Service Account already Exist: 'testAccount'.</errorMessage>
        <errorType>invalidInput.duplicateName</errorType>
    </apiError>
</apiErrors>
 
 
<apiErrors>
    <apiError>
        <errorData>name</errorData>
        <errorMessage>This field is required and cannot be empty.</errorMessage>
        <errorType>invalidInput.fieldRequired</errorType>
    </apiError>
    <apiError>
        <errorData>providerName</errorData>
        <errorMessage>This field is required and cannot be empty.</errorMessage>
        <errorType>invalidInput.fieldRequired</errorType>
    </apiError>
    <apiError>
        <errorData>authKey</errorData>
        <errorMessage>This field is required and cannot be empty.</errorMessage>
        <errorType>invalidInput.fieldRequired</errorType>
    </apiError>
</apiErrors>