Converting Text into a Number

This is my function, where I activate the speech recognizer. The result is then set to global time value.