The code must do the following:
1) Receive a request type get containing an dir as a parameter.
This dir will contain part of the path where the files are eg /var/www/html/test/[dir]/
2) identify which is the last .wav file that was created in the path ej /var/www/html/test/[dir]/
3) Run the google speech to text api by sending the wav file, you can use this sample code as a reference [login to view URL]
4) Return the text generated from the Google API in response.