Skip to content

Commit

Permalink
elevate sound media role (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
emphasize authored Nov 8, 2023
1 parent 45b8777 commit 5c05936
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ovos_utils/sound/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
def read_mycroft_config():
return dict()

# Create a custom environment to use that can be ducked by a phone role.
# This is kept separate from the normal os.environ to ensure that the TTS
# role isn't affected and that any thirdparty software launched through
# a mycroft process can select if they wish to honor this.
# Create a custom environment to use that can let duck a music role.
# This is kept separate from the normal os.environ to ensure that
# any thirdparty software launched through
# a ovos process can select if they wish to honor this.
_ENVIRONMENT = deepcopy(os.environ)
_ENVIRONMENT['PULSE_PROP'] = 'media.role=music'
_ENVIRONMENT['PULSE_PROP'] = 'media.role=phone'


def _get_pulse_environment(config):
Expand Down

0 comments on commit 5c05936

Please sign in to comment.