Android voice recording and playback app
Create an android app to implement the following functions:
1. there is a Gender switch button to toggle Voice Mode between Female and Male, default is Female so highlight Female
2. there is a switch button to toggle Voice Type between Text and Voice, default is Text so highlight Text
3. there is a Save button to save new settings/modifications
4. there is a Cancel button to cancel new settings/modifications that have not been saved
5. there is a Delete button to delete all settings/modifications from the app/device
6. if current voice type is Text, hide all buttons/items on the screen for Voice mode, display a text input box and let user type any text string, no limit in length; there is a Read button next to the input box; when user clicks the button, the app reads in the text string he entered and speaks, and the voice should be female or male depending on the Gender switch; user can modify the text string and clicks Read again, until he is satisfied; when user clicks the Save button, app saves the current Gender mode, Voice type (Text) and the text string in a subfolder Audio the app/device, also removes any audio file recorded in Voice mode before
7. if current voice type is Voice, hide all buttons/items on the screen for Text mode, display a Record button and a Play button; when user clicks the Read button, change Read to Stop on the button and the app starts recording; when user clicks the newly changed Stop button, the app stops recording and changes Stop back to Record on the button and saves the temporary audio file; there is a Play button next to the Record/Stop button; the Play button is disabled during recording until it’s stopped; when user clicks Play button, the app plays back the temporary audio file; when user clicks Record button again, the app deletes the temporary audio file and record/save a new one until he is satisfied with the recording; when user clicks Save button, the app saves the current Gender mode, Voice type (voice) and renames the temporary file and saves it to a subfolder Audio in the app/device, also removes any text string saved in Text mode before
8. when user closes and restarts the app again, the buttons and/or text input box need to be setup accordingly based on Gender, Voice type, text or audio file recorded and saved already in the app/device