Import Speech Configurations

Use this API to import speech configurations into the Speech Server.

HTTP Method

PUT

URI

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

Content Type

Application/JSON, Application/XML

HTTP Success Code

200 OK - Successful

HTTP Failure Code

412 – Version mismatch

400 – Invalid payload/request

500 – Server Error

Parameters

Parameter

Type

Description

Values

Required

Validation

force

Boolean

Indicates whether to forcefully overwrite the speech configurations even if the version is lower.

The default value is false

.

true / false

No

N/A

Sample Request
<speechConfigRoot>
   <version>10</version>
   <tts>
      <serviceAccounts>
         <serviceAccount>
            <providerName>google</providerName>
            <id>cisco-dev-9gkv</id>
            <description>Provide description here</description>
            <useAsDefault>true</useAsDefault>
            <key>JSON Key</key>
            <properties>
               <property>
                  <key>default-language</key>
                  <value>en-US</value>
               </property>
            </properties>
         </serviceAccount>
      </serviceAccounts>
   </tts>
   <asr>
      <serviceAccounts>
         <serviceAccount>
            <providerName>google</providerName>
            <id>cisco-dev-9gkv</id>
            <description>Provide description here</description>
            <useAsDefault>true</useAsDefault>
            <key>JSON Key</key>
            <properties>
               <property>
                  <key>default-language</key>
                  <value>en-US</value>
               </property>
            </properties>
         </serviceAccount>
      </serviceAccounts>
   </asr>
   <nlp>
      <serviceAccounts>
         <serviceAccount>
            <providerName>dialogFlow</providerName>
            <id>cisco-dev-9gkv</id>
            <description>Provide description here</description>
            <useAsDefault>true</useAsDefault>
            <key>JSON Key</key>
            <properties>
               <property>
                  <key>default-language</key>
                  <value>en-US</value>
               </property>
            </properties>
         </serviceAccount>
      </serviceAccounts>
   </nlp>
</speechConfigRoot>