Tag Archives: microphone

Speech to Text Survey Tutorial

On top of yesterday’s Speech to Text ESL Tutorial we add, for the first time, a “Survey” functionality not needing a two player setup. This leaves the right hand table cell to be able to contain an HTML form element, used to “survey” the user on the survey questions you set up when selecting a new “Survey” HTML select element (dropdown) option. And so this is where our language of design, PHP, comes to the fore, as a useful language to process the potential for huge amounts of data related to the survey you design. We design the web application “Survey” component, so as to be able to email off either/both … survey form as an HTML email attachment via the PHP mail method survey form results as an HTML email link via an a mailto: link to the default email client application of the user PHP has it over HTML … creating email as per the first option above … and … being able to post process method=POST data from an HTML form element, where much more data can be handled This new functionality can be accessed via an option of the dropdown of this live run link, or a “cut to the chase” survey link for today’s changed PHP code of speech_supervisor.php. Previous relevant Speech to Text ESL Tutorial is shown below. When you involve audio input into a web application it is likely that that web application can become useful with learning a language, such as with ESL (English as a second or foreign language) usage, especially as such learning has … spoken reading writing … components to it. As you would appreciate, once the learner is speaking and then that (spoken content) is written out (as a transcript), and the learner is then reading that content, the web application can be a “double whammy” effective learning tool. We extend the web application’s functionality from yesterday’s Speech to Text Primer Tutorial using a technique we often use, that being changing the original (guinea pig usage) word “Quiz” into it plus other options presented in a … HTML select (dropdown) element … as per HTML “onload” event … <body onload=”document.getElementById(‘preq’).innerHTML=dds(‘Quiz’); document.getElementById(‘kb’).focus(); pickq();”> … call of the Javascript … function dds(qwhat) { var selbit=”<select id=selbit onchange=’ location.href=document.URL.split(\”#\”)[0].split(\”?\”)[0] + \”?mode=\” + this.value; ‘><option value=0>” + modes[0] + “</option></select>”; for (var iselbit=1; iselbit<modes.length; iselbit++) { if (mode == iselbit) { selbit=selbit.replace(“</select>”, … Continue reading →

Posted in eLearning, Event-Driven Programming, Tutorials | Tagged , , , , , , , , , , , , , , , , , | Leave a comment

Speech to Text ESL Tutorial

When you involve audio input into a web application it is likely that that web application can become useful with learning a language, such as with ESL (English as a second or foreign language) usage, especially as such learning has … spoken reading writing … components to it. As you would appreciate, once the learner is speaking and then that (spoken content) is written out (as a transcript), and the learner is then reading that content, the web application can be a “double whammy” effective learning tool. We extend the web application’s functionality from yesterday’s Speech to Text Primer Tutorial using a technique we often use, that being changing the original (guinea pig usage) word “Quiz” into it plus other options presented in a … HTML select (dropdown) element … as per HTML “onload” event … <body onload=”document.getElementById(‘preq’).innerHTML=dds(‘Quiz’); document.getElementById(‘kb’).focus(); pickq();”> … call of the Javascript … function dds(qwhat) { var selbit=”<select id=selbit onchange=’ location.href=document.URL.split(\”#\”)[0].split(\”?\”)[0] + \”?mode=\” + this.value; ‘><option value=0>” + modes[0] + “</option></select>”; for (var iselbit=1; iselbit<modes.length; iselbit++) { if (mode == iselbit) { selbit=selbit.replace(“</select>”, “<option value=” + iselbit + ” selected>” + modes[iselbit] + “</option></select>”); } else { selbit=selbit.replace(“</select>”, “<option value=” + iselbit + “>” + modes[iselbit] + “</option></select>”); } } return qwhat.replace(‘Quiz’,selbit); } … that sets off onchange event logic to … reload the webpage with a URL ?mode= argument flagging this that is … detected via … var mode=location.search.split(‘mode=’)[1] ? eval(decodeURIComponent(location.search.split(‘mode=’)[1].split(‘&’)[0])) : 0; var modes=[“Quiz”,”Tongue Twisters”,”Haiku”]; var arraynames=[“questions”,”tongue_twisters”,”haiku”]; var delims=[“?”,”~”,”`”]; var bcols=[“yellow”,”lightgreen”,”lightblue”]; … enabling, as necessary the … “mapping” of other usage arrays (we are responsible for garnering) onto the original (guinea pig) array “questions” (within “dds” function above) via … if (mode != 0) { eval(arraynames[0] + “=” + arraynames[mode]); document.getElementById(‘tdm’).style.backgroundColor=bcols[mode]; } That leaves, apart from the extra content duties, a new scoring mechanism, one new one of which analyzes question words against answer words and scores positive word length score components for answer words found in question words and negative word length score components for question words not found in answer words. Again, feel free to have a look at today’s changed PHP code of speech_supervisor.php‘s “Speaking Quiz plus ESL Others”. Previous relevant Speech to Text Primer Tutorial is shown below. There was some great advice that had us dipping our toes into “Speech to Text” web application thoughts. You probably know yourself about the brilliant Google Translate and its “Text to Speech’ capabilities … Continue reading →

Posted in eLearning, ESL, Event-Driven Programming, Tutorials | Tagged , , , , , , , , , , , , , , | Leave a comment

Speech to Text Primer Tutorial

There was some great advice that had us dipping our toes into “Speech to Text” web application thoughts. You probably know yourself about the brilliant Google Translate and its “Text to Speech’ capabilities (or read some of our postings here such as Italian French Spanish Verb Conjugation Text to Speech Tutorial)? Well, it’s Google again supplying the brilliance for the obverse ideas used today in our “Speaking Quiz” web application idea. “Speaking”, that is, if you are using a recent enough version of the Google Chrome web browser, some HTML aspects of which are eloquently explained by this very useful link utilizing the wonderful Google Speech to Text API. If you are interested in “Speech to Text” you should also check out the very interesting Diagflow … Speech to Text. Thanks everyone, for these artificial intelligence “dipping our toes” encouragement. Feel free to have a look at today’s PHP code of speech_supervisor.php‘s “Speaking Quiz”. Previous relevant Italian French Spanish Verb Conjugation Text to Speech Tutorial is shown below. In following up on Italian and French and Spanish Verb Conjugation Event Tutorial as shown below we’ve increased functionality of English translations by adding Google Translate Text to Speech capabilities to … Italian French Spanish … via a new “loudspeaker” icon. Some of the talking points with today’s changes involve … a “reveal” idea whereby the showing of an HTML element is controlled by its Javascript DOM [element].style.width CSS property, whereby the element is effectively invisible at width:1px and in our case today becomes visible, at width:20px, and, thus, clickable, for Google Translate popup window translation and text to speech capabilities via the control of … binary decision making GUI ease of using HTML input tag type=checkbox and the associated Javascript DOM document.getElementById([element]).checked … because … UX-wise it is good to forewarn users with an option when it comes to functionality involving sound use of Javascript DOM document.getElementsByTagName(‘img’) as a means by which to manipulate HTML elements that are not necessarily provided with an ID global property As per the other tutorials in this thread, even with new Google Translate Text to Speech and Translation capabilities, nothing changes today about the techniques used today doing away with any need for a server side language by channelling the Ajax jQuery thoughts we presented with Ajax jQuery Primer Tutorial to make the most of the great resource that WordReference.com is. This happens in our … Continue reading →

Posted in eLearning, Event-Driven Programming, Tutorials | Tagged , , , , , , , , , , , | Leave a comment

GarageBand Keyboard Collection on Mac Primer Tutorial

Yesterday’s GarageBand Podcast on Mac Primer Tutorial got us into Mac OS X’s GarageBand application, and now … what do you know? … we’re stuck there! It’s addictive! And my favourite parts, so far? New (Project) -> Keyboard Collection -> Track -> “Classic Organ” and “Solo Star” and “Falling Star” And so we put together a video of playing around with this wonderful functionality for you to have a geek at below. Using steps like … on MacBook Pro opened GarageBand application in Applications folder click New Project icon or choose menu File -> New click Keyboard Collection icon to choose this and click Choose button click in “Track” section “Classic Organ” and “Solo Star” and “Falling Star” or other keyboard options play around on the keyboard presented, and repeat these last two steps however many times Did you know? Or did you guess … that the making of the YouTube clip above involved sitting two MacBook Pros on a table, facing each other, and using one of these to open the PhotoBooth desktop application on in Video mode with Edit -> Flip New Items set on, and with the other MacBook Pro performing the GarageBand steps as above? Open YouTube to our channel and Upload the resultant *.mov PhotoBooth video. Previous relevant GarageBand Podcast on Mac Primer Tutorial is shown below. Despite the demise of the Podcast Publisher desktop application from the more recent versions of Mac OS X, and we talked about at Podcast Publisher on Mac Primer Tutorial, that doesn’t mean that it is, or ever was, the end of Podcast creation opportunities on a MacBook Pro using Mac OS X. The whole time we’ve had the GarageBand desktop application’s … New (Project) -> Podcast … functionality to turn to, as we got prompted to do by this very useful link, thanks. Today, we used GarageBand, firstly (and now I know how Meryl Streep (or Florence Foster Jenkins) didn’t feel) without a microphone … … and then with a microphone … … the latter in particular, courtesy of a GarageBand Project Save As… “Compact Project”, creating an audio track of a small enough size to email to somebody (is this a Voice Memo) for quite a few minutes of recording time (where today’s is almost 3 minutes of “Unreachable” entertainment … cough, cough). So how did we make this “gem” (Danburite, anyone?) of an audio production (Podcast) … Continue reading →

Posted in eLearning, Operating System, Tutorials | Tagged , , , , , , , , , , , , , | Leave a comment

GarageBand Podcast on Mac Primer Tutorial

Despite the demise of the Podcast Publisher desktop application from the more recent versions of Mac OS X, and we talked about at Podcast Publisher on Mac Primer Tutorial, that doesn’t mean that it is, or ever was, the end of Podcast creation opportunities on a MacBook Pro using Mac OS X. The whole time we’ve had the GarageBand desktop application’s … New (Project) -> Podcast … functionality to turn to, as we got prompted to do by this very useful link, thanks. Today, we used GarageBand, firstly (and now I know how Meryl Streep (or Florence Foster Jenkins) didn’t feel) without a microphone … … and then with a microphone … … the latter in particular, courtesy of a GarageBand Project Save As… “Compact Project”, creating an audio track of a small enough size to email to somebody (is this a Voice Memo) for quite a few minutes of recording time (where today’s is almost 3 minutes of “Unreachable” entertainment … cough, cough). So how did we make this “gem” (Danburite, anyone?) of an audio production (Podcast) via the GarageBand desktop application in Mac OS X … got out the MacBook Pro … plugged in our MXL Tempo microphone into Mac Book Pro USB port, and turned everything on at the power … Apple icon -> System Preferences -> Sound -> Input -> USB audio Codec opened GarageBand application in Applications folder click New Project icon or choose menu File -> New click Podcast icon to choose this and click Choose button click in “Track” section “Male Voice” filled out the Save As… textbox as MyUnreachableSong (to be the name of this GarageBand project) and clicked Create button … to record you click the round red button, which you later click to stop recording as well, but just before that we brought up a Karaoke YouTube clip to help with the words and rhythm and backing music (yes, we did get help, and still sounded like a strangled chook!) at this webpage, thanks … clicked YouTube “play” and shortly thereafter the GarageBand red record button … sang?! clicked the GarageBand red record button to stop recording … File -> Save As… and selected the Compact Project checkbox to save the GarageBand Project … which then contains off its base folder … MyUnreachableSong.band/Media … to a “Male Voice#01.m4a” (which we renamed to Male_Voice_01.m4a) for the purposes of sftp to the … Continue reading →

Posted in eLearning, Operating System, Tutorials | Tagged , , , , , , , , , , , , , , | Leave a comment

Microphone Recording Audio Primer Tutorial

The blog posting Webcam Mobile Tutorial set us up for using navigator.getUserMedia and on that occasion we used it mainly in conjunction with a device webcam and web application video element along with a web application canvas element, this all being very HTML5’y by nature. Today, we add another mode of use, presented in a new HTML select element dropdown, to this same web application as per … Webcam and Microphone Audio/Video display Webcam Video display Microphone Audio display and capture … suitable to capture a Voice Memo This new Microphone Audio display and capture functionality’s basis has been used before when we presented YouTube Embedded Video in Iframe API RegEx Tutorial directly “hotlinked” to the wonderful mattdiamond/Recorderjs GitHub project‘s live run demonstration webpage. But today, we do not “hotlink”, and we comply with Open Source licencing requirements by leaving unchanged Javascript code that is now referenced by all modes live run and microphone audio mode live run links that now involves the HTML and Javascript of webcamtest.htm that changed in this way regarding this new Microphone Audio capture web application functionality, consisting of … a microphone device connection via navigator.getUserMedianavigator.MediaDevices.getUserMedia … but this time … navigator.getUserMedia({video: false, audio: true}, handleAudio, videoError);navigator.MediaDevices.getUserMedia({video: false, audio: true}).then(function(mediaStream) { handleAudio(mediaStream); }).catch(function(err) { videoError(err) }); the recording of recorded audio capture in .wav format via a user click to Start Recording clicking the same button to Stop Recording then sets up the chance to … click Save button to download the .wav file, as required, to your local (client) file system We hope you get some ideas here. Previous relevant Webcam Mobile Tutorial is shown below. Am hoping most of you laptop and desktop computer users were able to see a webcam working with our web application we left off last with Webcam Photobooth Tutorial as shown below, and that’s great if that is the case, but the fact is that lots of platforms, predominantly mobile ones, it would appear do not support a Javascript call like … navigator.getUserMedia({video: true, audio: true}, handleVideo, videoError); … alas and alack! However, for all you long suffering (mainly mobile device) blog readers … thanks for reading … for what we taketh away, let us now putteth innereth a bitteth today. The webcam is a “streaming” video, but the next best thing we can do short of “streaming” is to loop an existing video, wouldn’t you say? Even … Continue reading →

Posted in eLearning, Event-Driven Programming, Tutorials | Tagged , , , , , , , , , | Leave a comment

Apple Dual Recording Dual Device Microphone Tutorial

Yesterday’s audio track added to the non-audio video of an iPad recording a movie of the screen and keyboard goings-on of a MacBook Pro, that we showed with Apple Dual Recording Dual Device Audio Tutorial as shown below, panned out to be far too quiet. Today we remedy that weakness by involving a microphone with the creation of the Audio Track to the video. We’ve talked about external microphone usage before when we presented WebEx Presentation with Microphone Tutorial, and back then, that external microphone definitely was the difference between “incommunicado” and “very good communication”. Again, the QuickTime Player can help out here both with … creating a new Audio Track (déjà vu (barring the red new bits) with lots of the steps at Apple Dual Recording Dual Device Audio Tutorial) … Get MacBook Pro Open desktop application QuickTime Player File -> Open Recent dual_recording_cropped.m4v … but don’t start playing it yet File -> New Audio Recording Position the “reb blob” audio recording window out of the way of dual_recording_cropped.m4v’s play window … plug in your microphone and speakers to a USB port make sure, in System Preferences that the Input microphone line has almost maximum volume, otherwise it won’t do much of a better job than the inbuilt microphone of the MacBook Pro click the dropdown (arrow) to the right of the reb blob and pick USB audio CODEC to use the plugged in microphone, and click Maximal quality … ready (with your quick reflexes?) Be quick with all of … Click Play “arrow” button in dual_recording_cropped.m4v’s play window Click “red blob” … and talk to (the MacBook Pro’s default audio recording functionality) synchronize your words with what is going on with the non-audio video (still playing) When dual_recording.m4v’s play window plays to the end of the non-audio video that is relevant to your audio track, choose QuickTime Player (menu) -> Quit QuickTime Player Save to dual_recording_cropped_audio.m4a … taking a note of how long (in seconds) this Audio Track is … as well as … that audio being loud enough now to hear for writing a transcript, and on to writing a YouTube Subtitles file to create Closed Captions on the resultant YouTube clip … Transcript YouTube Subtitles file We’ve returned to our blog posting. We copy and paste a previous blog posting from WordPress into a TextWrangler document. Here we are going Command-A to select all, Command-C to … Continue reading →

Posted in eLearning, Operating System, Tutorials | Tagged , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

YouTube via iPad Video Editing Tutorial

We’ve talked before about the ease with which, on an Apple iPad, you can upload to Google’s YouTube self made videos, using the Camera app’s Video mode when we presented YouTube via iPad Photos App Primer Tutorial as shown below. Are there video editing facilities up at YouTube, with an iPad, once you’ve uploaded? Not a great deal, except to be able to change Privacy setting and Tags, but not to physically change the video. However, before you upload the video via the iPad’s Photo app YouTube Share option, substitute in the use of an iPad (iOS) mobile app we’ve started to use called YouTube Capture to … create your own video using the app accessing the iPad’s camera and microphone … and/or bring up videos you’ve already made in the past and … piece together spliced bits of video, which we didn’t do today … and/or … add a soundtrack, which we wanted to do today … and then let the app upload to YouTube for you. Today we show you all this in two PDF slideshow parts, namely … slideshow showing the non third-party way of uploading a Camera app Video mode video of “Kitty Woo and Luna and Nala” via the Photo app YouTube Share option to YouTube, and then add Tags resulting in … … followed by … slideshow showing (just after) installing (via the App Store app) and opening the iPad (iOS) YouTube Capture app to add the soundtrack “Morning Mood” onto the pre-existing video, as above, to create a new video “Luna and Kitty Woo and Nala” uploaded to YouTube … Hope this gives you ideas. Previous relevant YouTube via iPad Photos App Primer Tutorial is shown below. When it comes to (online digital) media (matters) there is good crossover between the major mobile players of Google/Android (and YouTube) and Apple/iOS if you are approaching it in an optimistic or open ended framework (of thinking, perhaps). Today I’m missing the MacBook Pro … really missing it … and shaped to see what it is like explaining something on an Android (the Google Android Photos app on a Samsung mobile phone got updated) and seeing what it’s like videoing the goings on using the Apple iOS Camera app (in video mode) on an iPad, using the Sharing option “YouTube” (cute, huh?!) … and you can have a laugh at this at … … in my … Continue reading →

Posted in eLearning, iOS, Tutorials | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment