Chris Veilleux
53ffd737a0
move some steps in the startup sequence so that the message bus connection is established as early as possible. this will facilitate status updates occurring as soon as possible as well.
2021-11-30 15:40:40 -06:00
Chris Veilleux
3d26fa9ada
Add service ready event and improve logic to determine if device is ready.
2021-11-30 15:40:27 -06:00
jarbasal
88818bd52f
Fix loading of audioservice plugins
2021-07-26 21:17:17 +09:30
Ken Smith
ff01b7388b
add pause and resume ability to tts playback thread and use it during barge in
2021-07-02 12:12:07 -04:00
Kris Gesling
2c598fd96b
Merge branch 'dev' into feature/mark-2
2021-06-15 12:01:18 +09:30
Kris Gesling
e75a05557b
docstring cleanup
2021-05-11 15:10:32 +09:30
Chris Veilleux
8453e79900
Merge remote-tracking branch 'origin/dev' into feature/mark-2
...
# Conflicts:
# mycroft/tts/tts.py
2021-03-15 18:47:32 -05:00
Chris Veilleux
4d4f797c5d
Add the stack trace to an error message to help with debugging.
2021-03-10 13:39:58 -06:00
Chris Veilleux
6ed674bd3e
Merge remote-tracking branch 'origin/dev' into feature/mark-2
...
# Conflicts:
# mycroft/audio/__main__.py
# mycroft/client/speech/__main__.py
# mycroft/skills/__main__.py
# mycroft/util/process_utils.py
2021-02-26 11:49:30 -06:00
Ken Smith
b94d5e5c58
fix audioservice bug and stop pulsing when stop detected
2021-02-11 16:09:38 -05:00
Åke Forslund
3ede156c98
Only stop speaking if speaking is active
...
This also updates the relevant testcase
2021-02-01 20:26:44 +01:00
Åke Forslund
96bbd384ad
Add proper docstring
2021-02-01 20:26:44 +01:00
Åke Forslund
e3e52d63a0
Remove filesystem signal for stopping speech
...
The filesystem signal has not been used for quite some time and should
not be used.
2021-02-01 20:26:44 +01:00
Kris Gesling
f30adb85de
Merge pull request #2804 from forslund/bugfix/audioservice-issues
...
Bugfix/audioservice issues
2021-01-29 14:55:27 +09:30
Kris Gesling
1273425799
add ProcessStatus to key services
2021-01-28 17:24:21 +01:00
Åke Forslund
aace28dfa3
Use lock around play and stop
...
Moves the stopping logic to separate method to be able to call from
locked contexts
2021-01-23 11:09:54 +01:00
Åke Forslund
c00d37935a
Simplify restore audio volume handler
2021-01-22 14:40:00 +01:00
Åke Forslund
8ce1615d75
Lock around tracklist access
...
Adds a lock and some logic to verify that the audio hasn't stopped
already.
2021-01-22 14:40:00 +01:00
Åke Forslund
375adbbdf0
Make audioservice load backends without callback
2021-01-15 13:49:40 +01:00
Kris Gesling
ad32a7a873
move bus connect method to process_utils
2021-01-11 16:57:25 +09:30
Kris Gesling
f3c76fac44
Audio service to use common bus client method
2021-01-11 16:57:25 +09:30
Kris Gesling
54eac52b11
merge dev into mark-2 branch
2021-01-06 22:17:25 +09:30
jarbasal
1338c4c949
no video
2021-01-04 22:36:36 +00:00
Kris Gesling
fd5c8bb5e3
Merge branch 'dev' into feature/mark-2
2020-12-29 14:31:09 +09:30
Kris Gesling
6f8bae6ba1
Merge pull request #2736 from forslund/docs/plugin-apis
...
Add Plugin base classes APIs to readthedocs
2020-12-03 20:33:59 +09:30
Kris Gesling
b9c974bc1b
Merge pull request #2718 from forslund/bugfix/mimic-missing-exceptions
...
Handle Mimic missing properly
2020-11-16 14:40:14 +09:30
Åke Forslund
1ae6271051
Validate fallback TTS object
...
Verify that the fallback object can execute when creating it
2020-11-14 11:44:32 +01:00
Kris Gesling
f2b7b0251b
Merge pull request #2757 from forslund/feature/ready-check
...
Feature: add Process Status and ensure all services ready
2020-11-12 09:16:43 +09:30
Åke Forslund
c747b0487a
Improve docstrings for audio service backend classes
2020-11-04 08:03:03 +01:00
Kris Gesling
e9add604fd
add ProcessStatus to key services
2020-09-25 06:52:27 +02:00
Åke Forslund
d8ff26bbd9
Add plugin loading of audioservices
...
All modules registered under the entrypoint group "mycroft.plugin.audioservice"
These shall refer to a module with either an autodetect function or a
load_service function.
2020-09-23 07:46:13 +02:00
Åke Forslund
4e7809d732
Handle ntp sync in audioservice ready wait
...
Events (any python threading in general) don't use monotonic time and
can be affected by an ntp sync.
This replaces the normal event with the MonotonicEvent class handling jumps
into the future.
2020-09-10 13:26:25 +02:00
Åke Forslund
d704981613
Set a more specific module name for audioservices
...
The basic name caused collisions between the "vlc" audioservice and the
vlc module. This prepends an "audioservice_" to the service folder name.
2020-08-28 07:59:06 +02:00
Åke Forslund
ba8c41486c
Load audioservices using importlib instead of imp
...
imp has been deprecated for quite some time
2020-08-21 08:00:08 +02:00
Åke Forslund
0a04efd88d
Add system for checking audio service readiness
...
The new wait_for_loaded() method will wait until services has been
loaded. It has a 3 minute timeout (default)
This improves the audio service readiness indication to not trigger
until the services are loaded.
2020-07-24 22:12:54 +02:00
Åke Forslund
236a2ed594
Add hook for stopping
2020-07-22 11:06:47 +02:00
Åke Forslund
09b1deb511
Add possibility for notification hooks for services
...
- skills
- audio
- speech client
- messagebus service
- enclosure
The main functions now accepts the arguments ready_hook and error_hook
allowing a service or runner script to catch these states and perform
actions accordingly.
This is useful for things like systemd or a desktop launcher.
Fix audio service startup
2020-07-22 10:52:27 +02:00
Åke Forslund
2bb978362f
Use bus.wait_for_message() method to wait for speak
2020-07-05 16:38:52 +02:00
Kris Gesling
bf6e6af3e3
remove messagebus argument
2020-06-29 21:38:12 +09:30
Kris Gesling
e39fe64ba4
minor cleanup for PR review
2020-06-29 14:30:39 +09:30
Kris Gesling
c4478e82ad
ensure volume restored after mic recording
2020-06-25 16:17:54 +09:30
Kris Gesling
4345011f7f
prevent audio playing between mic record and handling
2020-06-19 15:27:48 +09:30
Åke Forslund
b581766a00
Fallback to mimic for bad http status codes
...
Added a RemoteTTSException exception for non-timeout exceptions, Mimic2
will consider HTTP status code 200-299 as OK while other responses will
trigger raise RemoteTTSException.
2020-02-17 15:08:21 +01:00
jarbasal
0de7f11c6e
execute TTS from debug_cli
2020-02-15 15:35:43 +01:00
Jarbas-Core
d16964c580
bus message targetting
2020-02-15 12:37:25 +01:00
Åke Forslund
97ff8a4708
Send mycroft.audio.queue_end
...
The message is sent when there are no more tracks in the queue and
playback has stopped.
2020-01-15 11:13:00 +01:00
Åke Forslund
1b88ebe508
Fix tracks with mime data for VLC backend
2020-01-15 09:06:50 +01:00
Åke Forslund
efb9cd1a01
Pass listen flag to fallback tts
2020-01-15 09:06:50 +01:00
Åke Forslund
e74b0e3900
Add audioservice method tests
...
This includes init, shutdown, play, stop, next, previous, pause,
seek_backward, seek_forward, queue lower_volume, restore_volume and resume.
2020-01-15 09:06:50 +01:00
Åke Forslund
9a36639ec7
Clean up mycroft/audio/__init__.py
2020-01-15 09:06:50 +01:00