Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyleconroy/htwml5
Write Twilio applications using HTML5
https://github.com/kyleconroy/htwml5
Last synced: 3 months ago
JSON representation
Write Twilio applications using HTML5
- Host: GitHub
- URL: https://github.com/kyleconroy/htwml5
- Owner: kyleconroy
- License: mit
- Archived: true
- Created: 2012-09-24T18:33:59.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-02-22T07:55:18.000Z (over 10 years ago)
- Last Synced: 2024-05-02T00:35:56.772Z (6 months ago)
- Language: Go
- Size: 141 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-twilio-golang - kyleconroy/htwml5
README
Power your Twilio applications using HTML5.
## Text to speech
```html
Hello world
```
You can change the voice and language of the spoken text.
```html
Hello world
```
If you'd like to insert a pause, use an `
` element.```html
Hello World
How are you?
```
## Phone Menus
Using the little known [menu element](), you can easily build phone trees, no
server-side logic required. Links must have the `digit` data attribute for menu
routing to work. This value can be an integer.```html
```
## URI schemes
URI schemes allow users to directly connect to phones, conferences, and clients
```html
To dial a phone, press 1
```
```html
To dial a conference, press 1
```
```html
To dial a browser, press 1
```
## Audio
```html
```
```html
This text will be read if the above url fails to load
```
## Forms
Forms support text, hidden, and select inputs. You can only have one text or
select input per form. Label text is also read
In the future, we may support multiple inputs via some magic.
```html
Please enter your zipcode
```
### Validation
You currently must to validation server-side. In the future, we may have
default error messages if validation attributes are provided
## Recordings
Recording speech works in a similar fashion, just specify the speech attribute
```html
```
## Well-formed HTML
The above examples are concise, but not entirely correct. To ensure validation
and proper support in the future, make sure you declare a DOCTYPE,
character-encoding, and langauge.
```html
... content here ...
```