Compare commits
	
		
			2 Commits
		
	
	
		
			565dac1946
			...
			b9e92cd46e
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| b9e92cd46e | |||
| 23e5caf13a | 
@@ -413,13 +413,13 @@ i2s_audio:
 | 
				
			|||||||
      number: GPIO17 # WS
 | 
					      number: GPIO17 # WS
 | 
				
			||||||
    i2s_bclk_pin:
 | 
					    i2s_bclk_pin:
 | 
				
			||||||
      number: GPIO16  # SCK
 | 
					      number: GPIO16  # SCK
 | 
				
			||||||
  # Dummy I2S audio pipeline for "speaker"
 | 
					#  # Dummy I2S audio pipeline for "speaker"
 | 
				
			||||||
  - id: i2s_dummy
 | 
					#  - id: i2s_dummy
 | 
				
			||||||
    i2s_lrclk_pin:
 | 
					#    i2s_lrclk_pin:
 | 
				
			||||||
      number: GPIO15 # WS
 | 
					#      number: GPIO15 # WS
 | 
				
			||||||
      ignore_strapping_warning: true  # This isn't connected to anything anyways
 | 
					#      ignore_strapping_warning: true  # This isn't connected to anything anyways
 | 
				
			||||||
    i2s_bclk_pin:
 | 
					#    i2s_bclk_pin:
 | 
				
			||||||
      number: GPIO14  # SCK
 | 
					#      number: GPIO14  # SCK
 | 
				
			||||||
 | 
					
 | 
				
			||||||
microphone:
 | 
					microphone:
 | 
				
			||||||
  - platform: i2s_audio
 | 
					  - platform: i2s_audio
 | 
				
			||||||
@@ -430,17 +430,17 @@ microphone:
 | 
				
			|||||||
    pdm: false
 | 
					    pdm: false
 | 
				
			||||||
    channel: left
 | 
					    channel: left
 | 
				
			||||||
 | 
					
 | 
				
			||||||
speaker:
 | 
					#speaker:
 | 
				
			||||||
  # Dummy speaker to fix home-assistant/core#142363
 | 
					#  # Dummy speaker to fix home-assistant/core#142363
 | 
				
			||||||
  - platform: i2s_audio
 | 
					#  - platform: i2s_audio
 | 
				
			||||||
    id: dummy_speaker
 | 
					#    id: dummy_speaker
 | 
				
			||||||
    i2s_audio_id: i2s_dummy
 | 
					#    i2s_audio_id: i2s_dummy
 | 
				
			||||||
    i2s_dout_pin: GPIO25
 | 
					#    i2s_dout_pin: GPIO25
 | 
				
			||||||
    dac_type: external
 | 
					#    dac_type: external
 | 
				
			||||||
    bits_per_sample: 16bit
 | 
					#    bits_per_sample: 16bit
 | 
				
			||||||
    sample_rate: 16000
 | 
					#    sample_rate: 16000
 | 
				
			||||||
    channel: mono #mono will have bad performance, however, we are not using the on device speaker
 | 
					#    channel: mono #mono will have bad performance, however, we are not using the on device speaker
 | 
				
			||||||
    buffer_duration: 60ms
 | 
					#    buffer_duration: 60ms
 | 
				
			||||||
 | 
					
 | 
				
			||||||
micro_wake_word:
 | 
					micro_wake_word:
 | 
				
			||||||
  id: mww
 | 
					  id: mww
 | 
				
			||||||
@@ -473,7 +473,7 @@ micro_wake_word:
 | 
				
			|||||||
voice_assistant:
 | 
					voice_assistant:
 | 
				
			||||||
  id: va
 | 
					  id: va
 | 
				
			||||||
  microphone: mic
 | 
					  microphone: mic
 | 
				
			||||||
  speaker: dummy_speaker
 | 
					#  speaker: dummy_speaker
 | 
				
			||||||
  micro_wake_word: mww
 | 
					  micro_wake_word: mww
 | 
				
			||||||
  use_wake_word: false
 | 
					  use_wake_word: false
 | 
				
			||||||
  noise_suppression_level: 3
 | 
					  noise_suppression_level: 3
 | 
				
			||||||
@@ -518,6 +518,7 @@ voice_assistant:
 | 
				
			|||||||
              red: 1
 | 
					              red: 1
 | 
				
			||||||
              green: 0
 | 
					              green: 0
 | 
				
			||||||
              blue: 0
 | 
					              blue: 0
 | 
				
			||||||
 | 
					          - voice_assistant.stop:
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
          - logger.log: "Command successful!"
 | 
					          - logger.log: "Command successful!"
 | 
				
			||||||
          - light.turn_on:
 | 
					          - light.turn_on:
 | 
				
			||||||
@@ -527,6 +528,10 @@ voice_assistant:
 | 
				
			|||||||
              red: 0
 | 
					              red: 0
 | 
				
			||||||
              green: 1
 | 
					              green: 1
 | 
				
			||||||
              blue: 0
 | 
					              blue: 0
 | 
				
			||||||
 | 
					          - voice_assistant.stop:
 | 
				
			||||||
 | 
					  on_tts_end:
 | 
				
			||||||
 | 
					    - logger.log: "Finished STT result"
 | 
				
			||||||
 | 
					    - voice_assistant.stop:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
light:
 | 
					light:
 | 
				
			||||||
  - platform: rgb
 | 
					  - platform: rgb
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user