Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TTS Stop Speaking #405

Merged
merged 8 commits into from
Jun 25, 2021
Merged

TTS Stop Speaking #405

merged 8 commits into from
Jun 25, 2021

Conversation

Jack-Byrne
Copy link
Collaborator

Fixes #401 Partially

Testing Plan

  • I have verified that I have not introduced new warnings in this PR (or explain why below)
  • I have tested this PR against Core and verified behavior (if applicable, if not applicable, explain why below).

Core Tests

Send alert with tts file that is longer than the alert timeout (putfile any music mp3). Stop speaking is sent by SDL Core if the alert hits its duration without a user interaction.

Core version / branch / commit hash / module tested against: [INSERT]
Proxy+Test App name / version / branch / commit hash / module tested against: [INSERT]

Summary

  • Adds support for stop speaking rpc
  • Adds TTS.Started/Stopped notifications
  • Fixes order for when TTS.Speak should be responded to.

CLA

Copy link
Contributor

@jacobkeeler jacobkeeler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, it looks like if an empty string is sent in a TTSChunk, then TTS will not stop properly, so we will need to include a case to cover that

Jack-Byrne and others added 2 commits June 24, 2021 15:23
Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>
Jack-Byrne and others added 2 commits June 24, 2021 16:50
Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>
Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>
@Jack-Byrne Jack-Byrne merged commit 6cf16c7 into develop Jun 25, 2021
@Jack-Byrne Jack-Byrne deleted the feature/stop_speaking branch June 25, 2021 15:29
LiliiaShlikhtLuxoft pushed a commit to LuxoftSDL/generic_hmi that referenced this pull request Jul 19, 2021
* TTS Stop Speaking

* Apply suggestions from code review

Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>

* Reject speak request if one in progress

* OnResetTimeout and long speech fix

* Apply suggestions from code review

Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>

* Dont allow empty strings

* Update src/js/Controllers/TTSController.js

Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>

* Update src/js/Controllers/TTSController.js

Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>

Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants