Skip to content

Instantly share code, notes, and snippets.

{"text":"Hello World"}
# Parameters for the app registration
$ClientId = "XXXXXXXXXXXX"
$TenantId = "XXXXXXXXXXXX"
$ClientSecret = "XXXXXXXXXXXX"
# Convert the Client Secret to a SecureString
$SecureClientSecret = ConvertTo-SecureString -String $ClientSecret -AsPlainText -Force
# Create a PSCredential object with the Client ID and Secure Client Secret
$ClientSecretCredential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $ClientId, $SecureClientSecret
base64ToBinary(variables('audiostring'))
outputs('http_3')?['body/$content']
outputs('Parse_JSON')?['body']?['choices'][0]?['message']?['content']
<speak version='1.0' xml:lang='en-US'>
<voice name="en-US-JennyNeural" styledegree="2">
</voice>
</speak>
{
"type": "object",
"properties": {
"statusCode": {
"type": "integer"
},
"headers": {
"type": "object",
"properties": {
"request-id": {
{
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Im blind, please describe for me whats in front of me on the photo."
},
{
Set(varAudioFile,"https://alexholmeset.sharepoint.com/sites/test321/Shared%20Documents/newfile2.wav");
Set(varStartTimer, false);Set(playAudio, true)
Set(varAudioFile, "");Set(varPhoto, JSON(Image1.Image, JSONFormat.IncludeBinaryData));
Set(varPhotoBase64Only, Mid(varPhoto, Find(",", varPhoto)+1, Len(varPhoto) - Find(",", varPhoto) -1 ));
Set(newadata, VoiceVisionFlow.Run(varPhotoBase64Only));
Set(varStartTimer, true);Reset(Audio1)