touchdevelop api api sound & microphone record sound disclaimer: this document is provided...
TRANSCRIPT
touchdevelop api
api sound & microphonerecord sound
Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including URL and other Internet Web site references, may change without notice. You bear the risk of using it. This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purposes. © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and Windows Live are trademarks of the Microsoft group of companies. All other trademarks are property of their respective owners.
touchdevelop api
microphone
o usage: explicit sound stream recording(continuous recording in background not possible)
touchdevelop api
soundo record, download, playo volumeo pan: left-right (stereo)o pitch: distort speed of replay
touchdevelop api
apiso Senses→record microphone
Records audio using the microphoneo Languages→record text
Converts the microphone dictation to text using Project Hawaii from Microsoft Research
touchdevelop api
apiso Sound→play
Plays the sound effecto Sound→play special
Plays the song with different volume (0 to 1), pitch (-1 to 1) and pan (-1 to 1).
o Sound→durationGets the duration in seconds.
o Sound→set volumeSets the volume from 0 (silent) to 1 (full volume).
o Sound→volumeGets the volume from 0 (silent) to 1 (full volume)
touchdevelop api
apiso Sound→set pan
Sets the panning, ranging from -1.0 (full left) to 1.0 (full right).o Sound→pan
Gets the panning, ranging from -1.0 (full left) to 1.0 (full right).o Sound→set pitch
Sets the pitch adjustment, ranging from -1 (down one octave) to 1 (up one octave).
o Sound→pitchGets the pitch adjustment, ranging from -1 (down one octave) to 1 (up one octave).
o Sound→post to wallDisplays a player on the wall
touchdevelop api
apiso Web→download sound
Downloads a WAV sound file from internet
touchdevelop api
exampleso record & play
☁ http://touchdevelop.com/ovfe o voice robotizer
☁ http://touchdevelop.com/ucmk o beat board
☁ http://touchdevelop.com/xxnu
touchdevelop api
exercises►record sound, play when tapping on screen, change pitch depending on phone orientation
touchdevelop api
homework►finish exercise at home