Skip to content

Instantly share code, notes, and snippets.

@tonyhallett
tonyhallett / AlexaVoiceAndToneToMp3.md
Created February 6, 2023 13:59
Instructions and code for programmatic Alexa Voice and Tone with saving of mp3.

Intro

The alexa developer console has a test section with Voice & Tone where you can provide Alex SSML, select a skill locale and hear the audio response.

There is no API available but using Chrome Developer Tools it is possible to create a javascript snippet to generate multiple SSML MP3s.

The only requirement is to add a debug statement in the page source and make a function global.

To find the js.

@tonyhallett
tonyhallett / explanation.txt
Last active March 27, 2019 12:49
Resolved your issue with RuleRegister test requiring implementation of Rule
Sorry do not have time to fork and pull.
----------------------------------------------------------
rule-register.ts to change to:
//exported for testing
export class RegisterFactory<T>{
setUpForRegister(){
@tonyhallett
tonyhallett / launch.json
Created March 26, 2019 14:23
vscode launch.json for jest debugging
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"name": "vscode-jest-tests",
"request": "launch",
"args": [
"--runInBand",
"--coverage", "false"