# Silent utterance possible?

**URL:** <https://community.openconversational.ai/t/silent-utterance-possible/9350>\
**Category:** General Discussion\
**Created:** [September 1, 2020, 11:01am UTC](https://community.openconversational.ai/t/silent-utterance-possible/9350 "2020-09-01T11:01:24Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![ScienceGuy](https://community.openconversational.ai/user_avatar/community.openconversational.ai/scienceguy/32/3043_2.png) [@ScienceGuy](https://community.openconversational.ai/u/ScienceGuy)\
**Post date:** [September 1, 2020, 11:01am UTC](https://community.openconversational.ai/t/silent-utterance-possible/9350/1 "2020-09-01T11:01:24Z")

</div>

Hello, I use a combination of voice and screen outputs via the companion app for a recent project. Is it possible to utter something silently, i.e. the text is visible but Mycroft does not read it?

---

<div class="post-metadata">

**Author:** ![gras64](https://community.openconversational.ai/user_avatar/community.openconversational.ai/gras64/32/2156_2.png) [@gras64](https://community.openconversational.ai/u/gras64)\
**Post date:** [September 1, 2020, 3:03pm UTC](https://community.openconversational.ai/t/silent-utterance-possible/9350/2 "2020-09-01T15:03:26Z")

</div>

Hey try this with messagebus

[https://mycroft-ai.gitbook.io/docs/mycroft-technologies/mycroft-core/message-types#recognizer\_loop-utterance](https://mycroft-ai.gitbook.io/docs/mycroft-technologies/mycroft-core/message-types#recognizer_loop-utterance)  
and  
[https://mycroft-ai.gitbook.io/docs/mycroft-technologies/mycroft-core/message-types#speak](https://mycroft-ai.gitbook.io/docs/mycroft-technologies/mycroft-core/message-types#speak)

would you like to use the mycroft without sound?  
you could simply switch it off via the configuration tts.

---

<div class="post-metadata">

**Author:** ![ScienceGuy](https://community.openconversational.ai/user_avatar/community.openconversational.ai/scienceguy/32/3043_2.png) [@ScienceGuy](https://community.openconversational.ai/u/ScienceGuy)\
**Post date:** [September 1, 2020, 3:19pm UTC](https://community.openconversational.ai/t/silent-utterance-possible/9350/3 "2020-09-01T15:19:51Z")

</div>

No, the audio needs to be on. I want to avoid that Mycroft reads links that I want to display to the user.

---

<div class="post-metadata">

**Author:** ![gras64](https://community.openconversational.ai/user_avatar/community.openconversational.ai/gras64/32/2156_2.png) [@gras64](https://community.openconversational.ai/u/gras64)\
**Post date:** [September 1, 2020, 3:38pm UTC](https://community.openconversational.ai/t/silent-utterance-possible/9350/4 "2020-09-01T15:38:59Z")

</div>

there is a text output option for gui / enclosure system that can be triggered via message bus. if you want, I’ll see if I can find something. with this you can only display texts and not pronounce them, but not globally across all skills.  
[https://mycroft-ai.gitbook.io/docs/skill-development/displaying-information/mycroft-gui](https://mycroft-ai.gitbook.io/docs/skill-development/displaying-information/mycroft-gui)

---

<div class="post-metadata">

**Author:** ![ScienceGuy](https://community.openconversational.ai/user_avatar/community.openconversational.ai/scienceguy/32/3043_2.png) [@ScienceGuy](https://community.openconversational.ai/u/ScienceGuy)\
**Post date:** [September 1, 2020, 3:58pm UTC](https://community.openconversational.ai/t/silent-utterance-possible/9350/5 "2020-09-01T15:58:30Z")

</div>

Thanks for your help, it would be great if you can point me to a code snippet or similar.

---

<div class="post-metadata">

**Author:** ![gras64](https://community.openconversational.ai/user_avatar/community.openconversational.ai/gras64/32/2156_2.png) [@gras64](https://community.openconversational.ai/u/gras64)\
**Post date:** [September 1, 2020, 4:14pm UTC](https://community.openconversational.ai/t/silent-utterance-possible/9350/6 "2020-09-01T16:14:14Z")

</div>

do you use a mycoft gui device or something else to display

---

<div class="post-metadata">

**Author:** ![ScienceGuy](https://community.openconversational.ai/user_avatar/community.openconversational.ai/scienceguy/32/3043_2.png) [@ScienceGuy](https://community.openconversational.ai/u/ScienceGuy)\
**Post date:** [September 1, 2020, 4:27pm UTC](https://community.openconversational.ai/t/silent-utterance-possible/9350/7 "2020-09-01T16:27:36Z")

</div>

I only use the Android Companion App to display and speak to the user. I think that one relies completly on the message bus.

---

<div class="post-metadata">

**Author:** ![gras64](https://community.openconversational.ai/user_avatar/community.openconversational.ai/gras64/32/2156_2.png) [@gras64](https://community.openconversational.ai/u/gras64)\
**Post date:** [September 1, 2020, 4:37pm UTC](https://community.openconversational.ai/t/silent-utterance-possible/9350/8 "2020-09-01T16:37:43Z")

</div>

something like that

> **[MycroftAI/Mycroft-Android](https://github.com/MycroftAI/Mycroft-Android)**
>
> Android companion app, sends commands from your Android device to your Mycroft system and returns the output as speech or other medium to the Android device. - MycroftAI/Mycroft-Android

  
i try to understand what you want to do exactly because there are many ways to reach your goal

---

<div class="post-metadata">

**Author:** ![ScienceGuy](https://community.openconversational.ai/user_avatar/community.openconversational.ai/scienceguy/32/3043_2.png) [@ScienceGuy](https://community.openconversational.ai/u/ScienceGuy)\
**Post date:** [September 1, 2020, 4:44pm UTC](https://community.openconversational.ai/t/silent-utterance-possible/9350/9 "2020-09-01T16:44:22Z")

</div>

Yes this is the app. It connects to the message bus via websocket and Google STT reads anything that the app receives via the websocket (as far as I understand).  
What I am looking for is a way that the sent message is visible only without the STT part. I thought there is a markup for the message to indicate that the TTS should not trigger. Probably, in this case the solution involves changing the Android app directly (turn of the TTS for some messages).

---

<div class="post-metadata">

**Author:** ![gras64](https://community.openconversational.ai/user_avatar/community.openconversational.ai/gras64/32/2156_2.png) [@gras64](https://community.openconversational.ai/u/gras64)\
**Post date:** [September 1, 2020, 4:51pm UTC](https://community.openconversational.ai/t/silent-utterance-possible/9350/10 "2020-09-01T16:51:17Z")

</div>

you want to create a skill that sends a “link” to the android app and the user only has to click on it or do you want to change the app so that you can’t hear anything and only see?

---

<div class="post-metadata">

**Author:** ![ScienceGuy](https://community.openconversational.ai/user_avatar/community.openconversational.ai/scienceguy/32/3043_2.png) [@ScienceGuy](https://community.openconversational.ai/u/ScienceGuy)\
**Post date:** [September 1, 2020, 5:16pm UTC](https://community.openconversational.ai/t/silent-utterance-possible/9350/11 "2020-09-01T17:16:26Z")

</div>

The user should see the link (URL) only.  
Hearing it is a bad user experience because it’s cryptic and quite long - Mycroft will annoy the user.  
I do not know if I must change the skill or the app or both for this. Naturally, I would assume to change my skill (e.g. that I can mark messages as “write only” =\> they are inaudible).

---

<div class="post-metadata">

**Author:** ![AIIX](https://community.openconversational.ai/user_avatar/community.openconversational.ai/aiix/32/641_2.png) [@AIIX](https://community.openconversational.ai/u/AIIX)\
**Post date:** [September 1, 2020, 6:30pm UTC](https://community.openconversational.ai/t/silent-utterance-possible/9350/12 "2020-09-01T18:30:09Z")

</div>

You could look into emiting a custom message from the specific skill that would send the utterance as a data dict over the messagebus and capture its kind via type key or data key over a socket from the application

---

<div class="post-metadata">

**Author:** ![ScienceGuy](https://community.openconversational.ai/user_avatar/community.openconversational.ai/scienceguy/32/3043_2.png) [@ScienceGuy](https://community.openconversational.ai/u/ScienceGuy)\
**Post date:** [September 8, 2020, 5:49pm UTC](https://community.openconversational.ai/t/silent-utterance-possible/9350/13 "2020-09-08T17:49:19Z")

</div>

Thanks for the comments. I implemented something now with minimal changes like this:

There is a new message type “write”.

MainActivity.kt

```
if (voxswitch.isChecked && !mycroftUtterance.silent) {
    ttsManager.addQueue(mycroftUtterance.utterance)
}

```

MessageParser.kt

```
if (obj.optString("type") == "write") {
    val ret = Utterance(obj.getJSONObject("data").getString("utterance"), UtteranceFrom.MYCROFT, silent=true)
    callback.call(ret)
}

```

Utterance.kt

`data class Utterance(val utterance: String, val from: UtteranceFrom, val silent: Boolean = false)`
