-
Notifications
You must be signed in to change notification settings - Fork 605
Streaming mic data to AVS and play response audio with Mediaplayer #23
Comments
Hello boyce-xx, Assuming that ASSERT_EQ fails, can you tell us what param.type value was actually encountered? Also assuming the problem is that the ASSERT_EQ is failing, it may make sense to remove the ASSERT_EQ and loop around waitForNext() until param.type is HANDLE. Please let us know if this helps, and what you find, |
Hi @scotthea-amazon ,
# My TEST_F is:
|
Hello boyce-xx, Looking through our previous exchange I see that I mis-read your first post and thought you were failing in ASSERT_EQ vs. HANDLING, not PREHANDLING. Sorry! The logs you provided have been very helpful. From the server side logs I can see that SpeechStarted and SpeechFinished events were received. The last 204 in the log you provided is in response to the SpeechFinished. So, by the time you are reaching those ASSERT_EQ tests it appears your client has already processed the SpeechSynthesizer.Speak directive. In the original test those ASSERT_EQs are intended to wait on and test for the handling of a Speaker.SetMute directive. That SetMute directive is supposed to be handled before the SpeechSynthesizer.Speak directive. If for some reason you are not receiving the SetMute() directive, you could just remove the following lines from your test:
A couple of related questions:
Please let us know if this helps, |
@scotthea-amazon , Thanks for your help, following your suggestions, the error has been resolved. |
Hi, we can run default SpeechSynthesizerIntegrationTest app now, and get a response audio and play it with Mediaplayer in TEST_F(SpeechSynthesizerTest, handleOneSpeech) test function. but we have a question about how to stream mic data to AVS with stopCapture feature based on this test function?
We have tried to modify this test case, please see the sample code below, our expect flow is:
recording mic data and streaming it to AVS --> AVS detected a stopCapture --> stop recording --> playing the response audio with mediaplayer.
build is successful, but always blocking in the line
ASSERT_EQ(params.type, TestDirectiveHandler::DirectiveParams::Type::PREHANDLE);
The text was updated successfully, but these errors were encountered: