codesnanax.blogg.se

Google tts voices
Google tts voices











Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEYĬontent-type: application/x-www-form-urlencoded If your subscription isn't in the West US region, replace the Host header with your region's host name. Replace YOUR_SUBSCRIPTION_KEY with your subscription key for the Speech service. This example is a simple HTTP request to get a token. Use the following samples to create your access token request. The issueToken endpoint has this format: Replace with the identifier that matches the region of your subscription from this table: Geography To get an access token, you need to make a request to the issueToken endpoint by using Ocp-Apim-Subscription-Key and your subscription key. In this request, you exchange your subscription key for an access token that's valid for 10 minutes. When you're using the Authorization: Bearer header, you're required to make a request to the issueToken endpoint. For example: 'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY' When you're using the Ocp-Apim-Subscription-Key header, you're only required to provide your subscription key. This table illustrates which headers are supported for each feature: Supported authorization header AuthenticationĮach request requires an authorization header. For more information, see Speech service pricing.īefore you use the text-to-speech REST API, understand that you need to complete a token exchange as part of authentication to access the service. Costs vary for prebuilt neural voices (called Neural on the pricing page) and custom neural voices (called Custom Neural on the pricing page).













Google tts voices