microphone HTML5

smart RWD trick for mobiles...

by Leo Lanese

HTML

<input id="mic" onwebkitspeechchange="transcribe(this.value)" x-webkit-speech>

CSS

#mic {
    font-size: 20px;
    border: 0;
    height: 30px;
    background-color: #FFF;
    padding: 1px 0 0 3px;
    text-align: center;
    width: 90%;
    border-radius: 5px;
    -webkit-box-shadow: inset 1px 1px 5px rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0) 0 0 0;
    -moz-box-shadow: inset 1px 1px 5px rgba(0, 0, 0, 0.25), transparent 0 0 0;
    box-shadow: inset 1px 1px 5px rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0) 0 0 0;
}