Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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



  • For a monkey, press 1

  • For a gorilla, press 2


  • ```

    ## 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 ...

    ```