Skip to content

Commit

Permalink
DELIA-65448 : Add timeout to gstreamer source element on flex2.0 (rdk…
Browse files Browse the repository at this point in the history
…central#5497) (rdkcentral#5533)

Reason for change: Add timeout to gstreamer source element when requesting from cloud
Test Procedure: Mentioned in ticket
Risks: Low

Signed-off-by: vdinak240 <[email protected]>
  • Loading branch information
vdinak240 authored Jul 16, 2024
1 parent 547af1e commit 5ec333a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
4 changes: 4 additions & 0 deletions TextToSpeech/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ All notable changes to this RDK Service will be documented in this file.
* Changes in CHANGELOG should be updated when commits are added to the main or release branches. There should be one CHANGELOG entry per JIRA Ticket. This is not enforced on sprint branches since there could be multiple changes for the same JIRA ticket during development.

* For more details, refer to [versioning](https://github.com/rdkcentral/rdkservices#versioning) section under Main README.
## [1.0.31] - 2024-07-16
### Added
- Added Timeout for gstreamer souphttpsrc on Flex2

## [1.0.30] - 2024-06-07
### Changed
- Changed Timeout Accessing Network Thunder Plugin
Expand Down
2 changes: 1 addition & 1 deletion TextToSpeech/TextToSpeech.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#define API_VERSION_NUMBER_MAJOR 1
#define API_VERSION_NUMBER_MINOR 0
#define API_VERSION_NUMBER_PATCH 30
#define API_VERSION_NUMBER_PATCH 31
#define API_VERSION_NUMBER 1

namespace WPEFramework {
Expand Down
11 changes: 7 additions & 4 deletions TextToSpeech/TextToSpeech.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,14 @@
"properties": {
"speechstate": {
"summary": "The speech state",
"type": "string",
"type": "number",
"enum": [
"SPEECH_PENDING(0)",
"SPEECH_IN_PROGRESS(1)",
"SPEECH_PAUSED(2)",
"SPEECH_NOT_FOUND(3)"
],
"example":"SPEECH_IN_PROGRESS"
"example":"SPEECH_IN_PROGRESS(0)"
},
"TTS_Status": {
"$ref": "#/definitions/TTS_Status"
Expand Down Expand Up @@ -346,8 +346,11 @@
"properties": {
"voices": {
"summary": "Array of available voice",
"type": "string",
"example": "carol"
"type": "array",
"items": {
"type": "string",
"example": "carol"
}
},
"TTS_Status": {
"$ref": "#/definitions/TTS_Status"
Expand Down
7 changes: 6 additions & 1 deletion TextToSpeech/impl/TTSSpeaker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,12 @@ void TTSSpeaker::createPipeline(PipelineType type) {
#if defined(PLATFORM_AMLOGIC)
g_object_set(G_OBJECT(m_audioSink), "tts-mode", TRUE, NULL);
#endif

if(m_defaultConfig.hasValidLocalEndpoint() && type == MP3 )
{
//timeout
TTSLOG_WARNING("Adding timeout 2 sec");
g_object_set(G_OBJECT(m_source), "timeout", 2, NULL);
}
g_object_set(G_OBJECT(m_source), "location", tts_url.c_str(), NULL);
}

Expand Down

0 comments on commit 5ec333a

Please sign in to comment.