Acceptance test
| Test ID | Action | Expected Result |
|---|---|---|
| 1 | Receive a response from the backend 1. Follow steps listed on Readme to get backend running 2. Enter http://localhost:8000/ into browser address bar - If port 8000 is already in use on your computer, please change url to have correct port | See json response from browser: "Speech Transcription API" |
| 2 | Use "Offline" mode in Sample Game 1. Clone sample game from here 2. install npm packages 3. Run Game 4. Select 'Offline' radio button and press Initiate 5. Speak into microphone all game commands (Red, Blue, Green, Clear) | Square box should change to the color that was detected and you should see the word spoken in the dialog box |
| 3 | Use "Online" mode in Sample Game 1. Have backend service running by following steps listed on Readme. 2. Clone sample game from here 3. install npm packages 4. Run Game 5. Select 'Online' radio button and press Initiate 6. Press Start button 7. Speak into microphone all game commands (Red, Blue, Green, Clear) | Square box should change to the color that was detected and you should see the word spoken in the dialog box |
| 4 | See Command History Update in real time using "Offline" mode 1. Clone sample game from here 2. install npm packages 3. Run Game 4. Select 'Offline' radio button and press Initiate 5. Speak into microphone all game commands (Red, Blue, Green, Clear) 6. Click on button that says "Show History" 7. Say one of the game commands | Modal should display and update automatically |
| 5 | See Command History Update in real time using "Online" mode 1. Have backend service running by following steps listed on Readme. 2. Clone sample game from here 3. install npm packages 4. Run Game 5. Select 'Online' radio button and press Initiate 6. Press Start button 7. Speak into microphone all game commands (Red, Blue, Green, Clear) 8. Click on button that says "Show History" 9. Say one of the game commands | Modal should display and update automatically |
| 6 | Clear button on Command History Modal clears all commands for "Offline" Mode 1. Clone sample game from here 2. install npm packages 3. Run Game 4. Select 'Offline' radio button and press Initiate 5. Speak into microphone all game commands (Red, Blue, Green, Clear) 6. Click on button that says "Show History" 7. Say one of the game commands 8. Press Clear button | All commands previously displayed in modal should disapear |
| 7 | Clear button on Command History Modal clears all commands for "Online" Mode 1. Have backend service running by following steps listed on Readme. 2. Clone sample game from here 3. install npm packages 4. Run Game 5. Select 'Online' radio button and press Initiate 6. Press Start button 7. Speak into microphone all game commands (Red, Blue, Green, Clear) 8. Click on button that says "Show History" 9. Say one of the game commands 10. Press Clear button | All commands previously displayed in modal should disapear |
| 8 | Stop Button stops transcription for "Offline" mode 1. Clone sample game from here 2. install npm packages 3. Run Game 4. Select 'Offline' radio button and press Initiate 5. Speak into microphone all game commands (Red, Blue, Green, Clear) 6. Press "Stop" button 7. Continue Speaking for a few seconds | User should not see any new game commands trigger or transcription logs being displayed |
| 9 | Stop Button stops transcription for "Online" mode 1. Have backend service running by following steps listed on Readme. 2. Clone sample game from here 3. install npm packages 4. Run Game 5. Select 'Online' radio button and press Initiate 6. Press Start button 7. Speak into microphone all game commands (Red, Blue, Green, Clear) 6. Press "Stop" button 7. Continue Speaking for a few seconds | User should not see any new game commands trigger or transcription logs being displayed |
| 10 | Use Speaker Separation Option in "Online" mode 1. Have backend service running by following steps listed on Readme. 2. Clone sample game from here 3. install npm packages 4. Run Game 5. Select 'Online' radio button 6. Select checkbox labeled "Enable Multi-Speaker Mode" 7. Press Initiate Button 8. Press Start Button | Transcription should occur normally with the dialog box displaying [Speaker 1] or [Speaker 2] followed by transcribed speech |