-
Squashing Bugs
03/04/2017 at 16:37 • 0 commentsI made a few changes to the code today.
- MAXWORDS - Created a variable to set the maximum number of words a caller will be asked for. I had a couple of friends provide more than 40 which is more than the total word count.
- error_reporting(0) - On rare occasion, the next script would be called before the recording of the previous word was available. This would result in a PHP warning which would display to TwiML as garbage and say to the caller "We're sorry. An application error has occurred" and hang up on them. By disabling error reporting, I'll still get the rare zero byte recording, but the caller can keep going.
- Last, I changed the intro message to invite the user to hang up at any time but that the code would hang up after MAXWORDS.
-
Initial Tests Going Well
03/03/2017 at 22:52 • 0 commentsI posted my project on Facebook and a couple of my friends have contributed nicely. I still have a glitch I can't identify that will occasionally kick a caller off. I think it's when the recording isn't available at the moment of the next loop.
Also I think I need to put in some limit or something. I have two callers who provided over 40 samples and there is only 36 words (26 letters + 10 numbers) in the set.
But this is a good!
-
Seeking Alpha Testers
03/03/2017 at 03:46 • 0 commentsOkay... after some final code tweaks, I have the system up and running! I have two numbers available for initial tests.
Milwaukee - 414-979-9861
New York - 646-349-0996In the final run, I'll just use the New York number since that's where the show was located, but it's acting twitchy as of this writing, so I'm making my Milwaukee "sandbox" number use the same web hook for now.
If you call in, you'll get a brief voice intro and then hear a NATO word or a number. When you repeat the number it will save it and log the call (just what word and when). It will keep giving you new words until you hang up.
Thanks in advance.
-
*sigh*
03/02/2017 at 04:45 • 1 commentI heard back from Twilio Support on why all my recordings were being deleted the instant they arrived. It turns out they were having some downtime issues with that feature during the time I was trying to write this second.
Go figure.
Now I'm back up and running and closing in on the end of phase one, the recordings.
-
while( headache=="yes" ) { drink++; }
02/28/2017 at 21:24 • 0 commentsThis is my first time recording voice using the Twilio TwiML language. In the past I've used one of their "Twimlets" to record and transcribe messages for a DIY voicemail system.
Today I wrote up the code and made some tests. The SQL to pull a random word from the five least recently used words is fine. The voice thanks me for calling and gives me word after word until I hang up.
The recordings, however, keep getting deleted on the Twilio side and I can't figure it out.
After spending WAAAAAAAYYYYYY too much time today on this, I'm sending in a ticket and I'll see what I get back.