# Raspberry Pi Python

**URL:** <https://discuss.ai.google.dev/t/raspberry-pi-python/27142>\
**Category:** General Discussion\
**Tags:** raspberry\_pi, help\_request\
**Created:** [December 16, 2021, 12:24pm UTC](https://discuss.ai.google.dev/t/raspberry-pi-python/27142 "2021-12-16T12:24:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephan\_Skanta](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/stephan_skanta/32/9954_2.png) [@Stephan\_Skanta](https://discuss.ai.google.dev/u/Stephan_Skanta)\
**Post date:** [December 16, 2021, 12:24pm UTC](https://discuss.ai.google.dev/t/raspberry-pi-python/27142/1 "2021-12-16T12:24:25Z")

</div>

Hello everyone! I got object recognition working on a Pi4. It works well. I would now like to take the next steps. The goal is that I can write down what is recognized. I would then like to have it as voice output on the Pi. I am now wondering how can I adapt the script detection.py or proceed to get a recognized object as a “Print” command? espeak-ng -v …

---

<div class="post-metadata">

**Author:** ![LK\_Kadali](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/lk_kadali/32/13996_2.png) [@LK\_Kadali](https://discuss.ai.google.dev/u/LK_Kadali)\
**Post date:** [December 6, 2023, 1:01pm UTC](https://discuss.ai.google.dev/t/raspberry-pi-python/27142/3 "2023-12-06T13:01:54Z")

</div>

Hi @Stephan_Skanta, You can use gTTS(google Text-to-Speech) python library. Please refer this [document](https://pypi.org/project/gTTS/).

Steps: Extract label from a recognized object.  
Convert the label to speech using gTTs  
Save it in mp3 format and play.

Thank you
