Skip to content

Instantly share code, notes, and snippets.

# Create a payment claim to fund the request
PAYMENT_CLAIM=\
'{"account": "rGazdzwqUy5hVHpwdNpVVpex2MvwujhcP4", "destination_account": "rstbSTpPcyxMsiXwkBxS9tFTrg2JsDNxWk", "authorized_to_claim": "100000000", "signature": "739A0FD22815E118ED325764781BF46665BB7E5325EBC557495A3F8AE5194B6C6B17F2EF7B66F3ADF7469E5658AF7F76B56D59CA98A5CBE51429F9B5574FD10D", "channel_id": "76922D6C3C5C16F61628D8193A870C2D9409596CEDA03C85AA49F0B361DDE4C0"}'
# /run end-point for https://dhali-app.web.app/#/assets/d82952124-c156-4b16-963c-9bc8b2509b2c
URL=\
'https://dhali-prod-run-dauenf0n.uc.gateway.dev/d82952124-c156-4b16-963c-9bc8b2509b2c/run'
WAV_FILE=\
'/tmp/tmp.wav'
@desimmons
desimmons / speech-to-text.sh
Last active July 27, 2023 14:16
On demand, subscription free speech-to-text
# Create a payment claim to fund the request
PAYMENT_CLAIM=\
'{"account": "rBUJ2LwrP7XCZhBcnF4FYALLTETKRjcoQU", "destination_account": "rstbSTpPcyxMsiXwkBxS9tFTrg2JsDNxWk", "authorized_to_claim": "100000000", "signature": "6CF8B43A662395AC0FB10057BEFA23723F9A4E417DE08E2D2168C09C897F0D87C36D5EFC03ABF27318AB8C21FB3C042F50A60445689F9C9315022BCF0B363E04", "channel_id": "83A442BBE19F98402087287A63271E0621B2B470DD96FCAF48411220F6328810"}'
# /run end-point for https://dhali-app.web.app/#/assets/d82952124-c156-4b16-963c-9bc8b2509b2c
URL=\
'https://dhali-prod-run-dauenf0n.uc.gateway.dev/d82952124-c156-4b16-963c-9bc8b2509b2c/run'
WAV_FILE=\
'/tmp/tmp.wav'