This is the code used in the Speech Synthesis Editor tutorial published in Smashing Magazine.
This is only a demo, and the code is kept as minimal and simple as possible. This repo is not maintained.
-
Clone this repository
-
Upgrade or install the Sanity CLI (this project requires 0.140.0 or higher):
npm install --global @sanity/cli
- In the studio folder, install dependencies
sanity install
- Initialize this studio with your own project.
sanity init
Answer Y on the prompt that asks you to reconfigure the studio, and follow the instructions for creating a new project.
- Adding Speech Synthesis preview
If you want the preview button for editor to work, you'll have to add a token for Google’s text-to-speech API in schemas/ssml-editor/PreviewButton.js
.
- To start the studio locally:
sanity start
- To deploy the studio:
sanity deploy