{% extends 'django_spire/speech/speech_recognition.html' %} {% block speech_recognition_content %}
this.$refs.target_div.scrollTop = this.$refs.target_div.scrollHeight, 1500) this.speech_recognition.onresult = () => { this.message_body = this.speech_transcript this.send_chat({message_body: this.message_body, synthesis_speech_for_response: true}) } }, load_messages() { this.load_messages_view.render_insert_adjacent(this.$refs.target_div, {}) }, async send_chat({message_body = '', synthesis_speech_for_response = false}) { if (message_body !== '') { await this.request_message_view.render_insert_adjacent( this.$refs.target_div, { message_body: message_body, chat_id: this.chat_id, synthesis_speech: synthesis_speech_for_response } ) this.message_body = '' } } }" >
{{ chat.name_shortened }}
{% endblock %}