We need to update Greetings in call flow based on situations such as mass outage to explain the reason to caller and update the Greeting message every one hour until problem fix and replace the Greeting with Default.
Questions are:
What is difference between Greeting and Prompts
How to upload a new Wav file to PureCloud OR how to upload a new text for text to speech process
How to set call flow to use newly uploaded Wav file
How to set call flow to use default Greeting using Greeting ID
Thanks,
I was able to add a new prompt by only assigning Name and Description with null resources. Now i need to PUT to resource to update it's text to speech.
let's say ID here is the prompt ID that i got from PureCloud that i want to update it's Tts. I used below C# code:
var apiInstance = new ArchitectApi();
PromptAsset NewPromptAsset = new PromptAsset();
try
{
NewPromptAsset.Language = "en-US";
NewPromptAsset.TtsString = "Test one Text to Speech";
apiInstance.PutArchitectPromptResource(ID, "en-US", NewPromptAsset);
}
I received error message:
Error calling PutArchitectPromptResource: {"status":404,"code":"architect.prompt.resource.not.found","message":"Could not find resource with language 'en-us' in specified prompt.","messageWithParams":"Could not find resource with language '{language}' in specified prompt.","messageParams":{"language":"en-us"},"contextId":"b28c5b9f-d37d-45c4-923f-33eb0dfa2037","details":[],"errors":[]}
What i missed here? in "apiInstance.PutArchitectPromptResource" asks for language code. What is code for English?
New problem came up ...
When i want to upload a .Wav file to a prompt from hard drive, i use .UploadUri property. Looks like instead of uploading wav file, i should upload a stream.
Question is How to convert a wav file to stream and upload it to Purecloud for a prompt?