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

Add a new parameter to method synthesizeForCache #3443

Closed
wants to merge 1 commit into from

Conversation

lolodomo
Copy link
Contributor

Related to openhab/openhab-addons#14564 (comment)

Signed-off-by: Laurent Garnier [email protected]

@lolodomo lolodomo requested a review from a team as a code owner March 10, 2023 19:43
@lolodomo
Copy link
Contributor Author

@dalgwen to discuss this proposal

@dalgwen
Copy link
Contributor

dalgwen commented Mar 11, 2023

Is this modification only for the workaround around the limitation of the servlet based audio sinks ? Or it is also for the MaryTTS service and its custom behaviour with cache files ?

Another though : couldn't this boolean be a part of the AudioFormat object ?
It could then join the other matching capabilities process (when openHAB try to match the audio format requested with the TTS capabilities, i.e. wav, mp3, etc) :
The TTS service could declare if it supports FixedLength, as the AudioSink already does with the getSupportedStreams method.
Then when openHAB matches (getBestMatch), the requested AudioFormat can be filled with the information that the sink needs a FixedLengthAudioStream.

(And the cache could intercept the requested AudioFormat and disable the need of a FixedLengthAudioStream compatible response, because it knows that it will create a file itself)

@lolodomo
Copy link
Contributor Author

Is this modification only for the workaround around the limitation of the servlet based audio sinks ? Or it is also for the MaryTTS service and its custom behaviour with cache files ?

It was really for a workaround around the limitation of the servlet based audio sinks.
As you have already (almost) a solution for that, my proposal could be then be forgiven.
Priority to your solution. I will close this PR as soon as you submit your PR.

I have not yet looked at the MaryTTS service.

@dalgwen
Copy link
Contributor

dalgwen commented Mar 17, 2023

I made a PR that could solve the need for a workaround for the AudioServlet based sink. Hope this will help for your use case.

@lolodomo
Copy link
Contributor Author

I made a PR that could solve the need for a workaround for the AudioServlet based sink. Hope this will help for your use case.

Yes, very probably.

@lolodomo lolodomo closed this Mar 25, 2023
@lolodomo lolodomo deleted the CachedTTSService branch January 4, 2024 23:55
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