Skip to content

Instantly share code, notes, and snippets.

@JeffBrand
JeffBrand / run.cs
Last active March 16, 2020 08:49
Azure Function for Transcribing Speech
#r "Microsoft.WindowsAzure.Storage"
#r "Newtonsoft.Json"
using System.Net;
using Microsoft.CognitiveServices.SpeechRecognition;
public class ReportItem{
public string id {get;set;}
public string audioFile {get;set;}
public string audioText {get;set;}
}
# escape=`
# Use server core as an installer container to extract PowerShell,
# As this is a multi-stage build, this stage will eventually be thrown away
FROM microsoft/windowsservercore:1709 AS installer-env
# Arguments for installing powershell, must be defined in the container they are used
ARG PS_VERSION=6.0.1
ENV PS_DOWNLOAD_URL https://github.com/PowerShell/PowerShell/releases/download/v$PS_VERSION/PowerShell-$PS_VERSION-win-x64.zip
{
"defaultProfile": "{79285a8e-036c-446f-8a9c-78994e34bf85}",
"initialRows": 30,
"initialCols": 120,
"alwaysShowTabs": true,
"showTerminalTitleInTitlebar": true,
"showTabsInTitlebar": true,
"requestedTheme": "dark",
"profiles": [
{