Genie Community Forum

No audio in Home Assistant with USB Speaker

Hi guys!

I installed today Home Assistant (Home Assistant OS 8.1) and Genie (3.0.0). Genie recognize my voice but plays no TTS audio.

genie::state::State-Message: 20:56:38.084: ENTER state Listening
genie::AudioInput-Message: 20:56:38.084: [AudioInput] -> State::WOKE
genie::state::Listening-Message: 20:56:38.088: Stopping audio player...
genie::state::Listening-Message: 20:56:38.088: Playing WAKE sound...
** Message: 20:56:38.088: Queueing file:///usr/local/lib/genie-client/assets/match.oga for playback
genie::state::Listening-Message: 20:56:38.089: Connecting STT...
genie::state::State-Message: 20:56:38.090: Received PlayerStreamEnter with type=1 ref_id=-1, ignoring.
genie::state::State-Message: 20:56:38.095: Received PlayerStreamEnter with type=1 ref_id=-1, ignoring.
genie::state::State-Message: 20:56:38.097: Received PlayerStreamEnter with type=1 ref_id=-1, ignoring.
genie::state::State-Message: 20:56:38.100: Received PlayerStreamEnter with type=1 ref_id=-1, ignoring.
** Message: 20:56:39.146: End of stream
genie::state::State-Message: 20:56:39.153: Received PlayerStreamEnd with type=1 ref_id=-1, ignoring.
genie::AudioInput-Message: 20:56:39.900: [AudioInput] -> State::LISTENING
genie::AudioInput-Message: 20:56:40.530: [AudioInput] -> State::WAITING
genie::state::Listening-Message: 20:56:40.531: Handling InputDone...
** Message: 20:56:40.531: Queueing file:///usr/local/lib/genie-client/assets/match.oga for playback
** Message: 20:56:40.532: TRANSIT to Processing
genie::state::State-Message: 20:56:40.533: Spent 2448 milliseconds in state Listening
genie::state::State-Message: 20:56:40.533: ENTER state Processing
genie::state::State-Message: 20:56:40.534: Received PlayerStreamEnter with type=1 ref_id=-1, ignoring.
genie::state::State-Message: 20:56:40.536: Received PlayerStreamEnter with type=1 ref_id=-1, ignoring.
genie::state::State-Message: 20:56:40.538: Received PlayerStreamEnter with type=1 ref_id=-1, ignoring.
genie::state::State-Message: 20:56:40.541: Received PlayerStreamEnter with type=1 ref_id=-1, ignoring.
[20:56:40.951518] on_message (../src/stt.cpp:262): STT text: Hey Jeannie.What time is it?
genie::STT-Message: 20:56:40.951: Mangled: What time is it?
genie::conversation::Client-Message: 20:56:40.959: Sending: {"type":"command","text":"What time is it?"}
genie::conversation::Client-Message: 20:56:40.964: Received message: {"type":"command","command":"What time is it?","id":98}
Saving conversation state for main (229 characters)
Received assistant command What time is it?
Confidently analyzed message into @org.thingpedia.builtin.thingengine.builtin.get_time();
Handler thingtalk reports CONFIDENT_IN_DOMAIN_COMMAND
Handler com.bing reports NONCONFIDENT_IN_DOMAIN_COMMAND
Execution state:
$dialogue @org.thingpedia.dialogue.transaction.execute;
@org.thingpedia.builtin.thingengine.builtin.get_time()
#[results=[
  { time=new Time(20, 47, 36) }
]];
@org.thingpedia.builtin.thingengine.builtin.get_time()
#[results=[
  { time=new Time(20, 56, 41) }
]];
Genie executed new program: uuid-4f721669-3fd1-4a16-8a71-32adef6d1b1c
genie::conversation::Client-Message: 20:56:41.896: Received message: {"type":"new-program","uniqueId":"uuid-4f721669-3fd1-4a16-8a71-32adef6d1b1c","name":"Get Time","code":"@org.thingpedia.builtin.thingengine.builtin.get_time();","results":[{"time":"20:56:41"}],"errors":[],"icon":null,"id":99}
Saving conversation state for main (325 characters)
  stats: size(charts[0][ctx_display_nonlist_result]) = 1
   stats: size(charts[0][ctx_with_result_noquestion]) = 1
    stats: size(charts[0][ctx_with_result]) = 1
    stats: size(charts[0][ctx_thingpedia_result]) = 1
   stats: size(charts[1][actionable_system_display_result_short]) = 1
  stats: size(charts[2][system_nonlist_result]) = 1
 stats: size(charts[3][$agent]) = 1
     stats: size(charts[0][out_param_Any]) = 15
      stats: size(charts[0][constant_String]) = 2
      stats: size(charts[0][constant_Number]) = 13
      stats: size(charts[0][constant_Time]) = 5
      stats: size(charts[0][constant_Enum__service__media__social_network__communication__home__health__data_management]) = 7
      stats: size(charts[0][constant_Enum__physical__online__data__system]) = 4
      stats: size(charts[0][constant_Enum__about_almond_identity__about_almond_age__about_almond_how_are_you__about_almond_special__about_almond_motivation__about_almond_location__about_almond_comparison__about_almond_comparison_general__about_almond_training__about_almond_partner__about_almond_junk__about_almond_preference__about_almond_thingpedia__about_almond_interest__about_almond_registration__check_capability_home_assistant__check_capability_phone__check_capability_music_platform__general_help__iot_help__command_help__positive_emotion_thanks__positive_emotion_cool__negative_emotion_empathy__abusive__revoke_consent__how_to_train__how_to_configure_skill__how_to_disable_skill__how_to_set_language__how_to_access_settings__how_to_use_wakeword__how_to_report_bug__how_to_show_general_examples__how_to_show_home_assistant_examples__troubleshooting_home_assistant]) = 15
      stats: size(charts[0][constant_Enum__on__off]) = 2
      stats: size(charts[0][constant_Enum__current__home__work]) = 3
      stats: size(charts[0][constant_Enum__celsius__fahrenheit__kelvin]) = 3
     stats: size(charts[1][constant_Any]) = 30
     stats: size(charts[2][constant_pairs]) = 60
Agent act:
$dialogue @org.thingpedia.dialogue.transaction.sys_display_result;
Genie says: Right now, it's 8:56 PM.
genie::conversation::Client-Message: 20:56:41.988: Received message: {"type":"text","text":"Right now, it's 8:56 PM.","icon":null,"id":100}
genie::state::Processing-Message: 20:56:41.989: Received TextMessage, responding with text: Right now, it's 8:56 PM.
** Message: 20:56:41.989: TRANSIT to Saying
genie::state::State-Message: 20:56:41.989: Spent 1456 milliseconds in state Processing
genie::state::State-Message: 20:56:41.989: ENTER state Saying
Saving conversation state for main (336 characters)
genie::conversation::Client-Message: 20:56:41.995: Received message: {"type":"askSpecial","ask":null,"context":{"code":["$dialogue","@org.thingpedia.dialogue.transaction",".","sys_display_result",";","@org.thingpedia.builtin.thingengine.builtin",".","get_time","(",")","#[","results","=","[","{","time","=","TIME_0","}","]","]",";"],"entities":{"TIME_0":{"hour":20,"minute":56,"second":41}}}}
genie::state::Saying-Message: 20:56:41.995: Received empty AskSpecialMessage, round done.
** Message: 20:56:46.371: End of stream
############# Processing Performance #################
** Message: 20:56:46.374: TRANSIT to Sleeping
genie::state::State-Message: 20:56:46.374: Spent 4385 milliseconds in state Saying
genie::state::State-Message: 20:56:46.374: ENTER state Sleeping
         STT:  419.305 ms ( 28%)
  STT->Genie:    6.937 ms (  0%)
       Genie: 1029.751 ms ( 70%)
  Genie->TTS:    0.094 ms (  0%)
         TTS:    0.593 ms (  0%)
------------------------------------------------------
       Total: 1456.000 ms (100%)
######################################################

I tried many things also to play a song in VLC. In VLC the audio output works very well.

Here my audio config:

[core-ssh ~]$ ha audio info
audio:
  application:
  - addon: ""
    index: 0
    mute: false
    name: Echo-Cancel Sink Stream
    stream_index: 1
    stream_type: output
    volume: 1
  - addon: ""
    index: 0
    mute: false
    name: Echo-Cancel Source Stream
    stream_index: 1
    stream_type: input
    volume: 1
  - addon: 88544b92092430bc5d3fbbffc12a2f04
    index: 1
    mute: false
    name: Genie
    stream_index: 3
    stream_type: input
    volume: 1
  card:
  - driver: module-alsa-card.c
    index: 0
    name: alsa_card.usb-Generic_USB_Audio_201405280001-00
    profiles:
    - active: false
      description: Analog Stereo Input
      name: input:analog-stereo
    - active: false
      description: Digital Stereo (IEC958) Input
      name: input:iec958-stereo
    - active: false
      description: Analog Stereo Output
      name: output:analog-stereo
    - active: true
      description: Analog Stereo Duplex
      name: output:analog-stereo+input:analog-stereo
    - active: false
      description: Analog Stereo Output + Digital Stereo (IEC958) Input
      name: output:analog-stereo+input:iec958-stereo
    - active: false
      description: Digital Stereo (IEC958) Output
      name: output:iec958-stereo
    - active: false
      description: Digital Stereo (IEC958) Output + Analog Stereo Input
      name: output:iec958-stereo+input:analog-stereo
    - active: false
      description: Digital Stereo Duplex (IEC958)
      name: output:iec958-stereo+input:iec958-stereo
    - active: false
      description: "Off"
      name: "off"
  - driver: module-alsa-card.c
    index: 1
    name: alsa_card.platform-sound
    profiles:
    - active: true
      description: Analog Stereo Output
      name: output:analog-stereo
    - active: false
      description: Digital Stereo (HDMI) Output
      name: output:hdmi-stereo
    - active: false
      description: Digital Surround 5.1 (HDMI) Output
      name: output:hdmi-surround
    - active: false
      description: Digital Surround 7.1 (HDMI) Output
      name: output:hdmi-surround71
    - active: false
      description: "Off"
      name: "off"
  input:
  - applications:
    - addon: ""
      index: 0
      mute: false
      name: Echo-Cancel Source Stream
      stream_index: 1
      stream_type: input
      volume: 1
    card: 0
    default: true
    description: USB Audio Analog Stereo
    index: 1
    mute: false
    name: alsa_input.usb-Generic_USB_Audio_201405280001-00.analog-stereo
    volume: 0.63824462890625
  - applications:
    - addon: 88544b92092430bc5d3fbbffc12a2f04
      index: 1
      mute: false
      name: Genie
      stream_index: 3
      stream_type: input
      volume: 1
    card: null
    default: false
    description: USB Audio Analog Stereo (echo cancelled with Built-in Audio Analog
      Stereo)
    index: 3
    mute: false
    name: echosrc
    volume: 0.63824462890625
  output:
  - applications: []
    card: 0
    default: true
    description: USB Audio Analog Stereo
    index: 0
    mute: false
    name: alsa_output.usb-Generic_USB_Audio_201405280001-00.analog-stereo
    volume: 0.5
  - applications:
    - addon: ""
      index: 0
      mute: false
      name: Echo-Cancel Sink Stream
      stream_index: 1
      stream_type: output
      volume: 1
    card: 1
    default: false
    description: Built-in Audio Analog Stereo
    index: 1
    mute: false
    name: alsa_output.platform-sound.analog-stereo
    volume: 0.5
  - applications: []
    card: null
    default: false
    description: Built-in Audio Analog Stereo (echo cancelled with USB Audio Analog
      Stereo)
    index: 2
    mute: false
    name: echosink
    volume: 0.5
host: 172.30.32.4
update_available: false
version: 2022.05.0
version_latest: 2022.05.0

The USB speaker is a Sandberg USB Speakerphone Pro (126-17) . Any ideas?

Can be closed. Using now a combi of a pure USB mic and speakers connected via audio jack.