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

feat/ovos_dialog_tts_transformers #179

Merged
merged 10 commits into from
Oct 7, 2023
Merged

Conversation

JarbasAl
Copy link
Member

@JarbasAl JarbasAl commented Oct 6, 2023

listener has AudioTransformers
core has MetadataTransformers and UtteranceTransformers

this PR extends the concept to ovos-audio for text before TTS stage, and wav file after TTS but before playback

this ties into OpenVoiceOS/ovos-persona#4

DialogTransformer example OpenVoiceOS/ovos-solver-openai-persona-plugin#2
TTSTransformer example https://github.com/OpenVoiceOS/ovos-tts-transformer-sox-plugin/

listener has AudioTransformers
core has MetadataTransformers and UtteranceTransformers

this PR extends the concept to ovos-audio for text before TTS stage, and wav file after TTS but before playback

use case demonstration https://gist.github.com/JarbasAl/16788bdcff3fa5bfb3634d6f2116cc04

this ties into OpenVoiceOS/ovos-persona#4
@JarbasAl JarbasAl requested review from mikejgray, NeonDaniel and a team October 6, 2023 03:58
@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

All modified lines are covered by tests ✅

❗ No coverage uploaded for pull request base (dev@159d2cd). Click here to learn what that means.

Additional details and impacted files
@@          Coverage Diff          @@
##             dev    #179   +/-   ##
=====================================
  Coverage       ?   0.00%           
=====================================
  Files          ?      57           
  Lines          ?    3915           
  Branches       ?       0           
=====================================
  Hits           ?       0           
  Misses         ?    3915           
  Partials       ?       0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JarbasAl JarbasAl mentioned this pull request Oct 6, 2023
@JarbasAl JarbasAl added enhancement New feature or request refactor code improvements with no functional changes labels Oct 6, 2023
Copy link
Contributor

@mikejgray mikejgray left a comment

Choose a reason for hiding this comment

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

I don't know this codebase nearly well enough to put an approval on this PR, but I left some feedback.

ovos_plugin_manager/dialog_transformers.py Outdated Show resolved Hide resolved
ovos_plugin_manager/templates/transformers.py Outdated Show resolved Hide resolved
ovos_plugin_manager/templates/transformers.py Outdated Show resolved Hide resolved
ovos_plugin_manager/templates/tts.py Show resolved Hide resolved
@mikejgray
Copy link
Contributor

Oh, and the tests. Need fixing/coverage 🙂

@JarbasAl JarbasAl merged commit 53be943 into dev Oct 7, 2023
10 checks passed
@JarbasAl JarbasAl deleted the feat/ovos_dialog_tts_transformers branch October 7, 2023 20:43
from ovos_audio.playback import PlaybackThread
return PlaybackThread(*args, **kwargs)
except ImportError:
raise ImportError("please install ovos-audio for playback handling")
Copy link
Member

Choose a reason for hiding this comment

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

This import error is being thrown with ovos-audio 0.0.2a13 installed

Copy link
Member Author

Choose a reason for hiding this comment

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

0.0.2a19 is the min version needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactor code improvements with no functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants