Skip to content

Commit 8f09525

Browse files
authored
Merge pull request #52622 from Yueying-Liu/patch-7
Update the API change
2 parents 14d4f20 + 5629115 commit 8f09525

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/cognitive-services/Speech-Service/quickstarts/text-to-speech/async-synthesis-long-form-audio.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ These modules are used to parse arguments, construct the HTTP request, and call
5454
This code gets a list of available voices that you can use to convert text-to-speech. Add the code to `voice_synthesis_client.py`:
5555

5656
```python
57-
parser = argparse.ArgumentParser(description='Cris client tool to submit voice synthesis requests.')
57+
parser = argparse.ArgumentParser(description='Text-to-speech client tool to submit voice synthesis requests.')
5858
parser.add_argument('--voices', action="store_true", default=False, help='print voice list')
59-
parser.add_argument('-key', action="store", dest="key", required=True, help='the cris subscription key, like ff1eb62d06d34767bda0207acb1da7d7 ')
59+
parser.add_argument('-key', action="store", dest="key", required=True, help='the speech subscription key, like fg1f763i01d94768bda32u7a******** ')
6060
parser.add_argument('-region', action="store", dest="region", required=True, help='the region information, could be centralindia, canadacentral or uksouth')
6161
args = parser.parse_args()
62-
baseAddress = 'https://%s.cris.ai/api/texttospeech/v3.0-beta1/' % args.region
62+
baseAddress = 'https://%s.customvoice.api.speech.microsoft.com/api/texttospeech/v3.0-beta1/' % args.region
6363

6464
def getVoices():
6565
response=requests.get(baseAddress+"voicesynthesis/voices", headers={"Ocp-Apim-Subscription-Key":args.key}, verify=False)

0 commit comments

Comments
 (0)