Skip to content

Strange sound if a sentence ends with punctuation #42

@jhemak

Description

@jhemak

Hello, after upgrading from 1.6.4 to 2.1.1, I have noticed a new, very strange sound produced by piper at the end of spoken text.

To reproduce, use something like:

action: media_player.play_media
data:
  announce: true
  extra:
    volume: 40
  media:
    media_content_id: media-source://tts/tts.piper?message="This is a test."
    media_content_type: music
    metadata: {}
target:
  entity_id: media_player.xxxxxx

You should hear "This is a test" followed by a strange, low sound. If you use the following, you will hear only "This is a test", as expected.

action: media_player.play_media
data:
  announce: true
  extra:
    volume: 40
  media:
    media_content_id: media-source://tts/tts.piper?message="This is a test"
    media_content_type: music
    metadata: {}
target:
  entity_id: media_player.xxxxxx

This problem is not present when using tts.speak. It is also not present when using the first action above while running version 1.6.4 of the Piper Add On for Home Assistant. It is reproducable on 1.6.4 using the first Action with a ! instead of a . at the end of the phrase.

Thanks in advance for investigating if you are able!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions