Python Forum
How to add audio to Tensorflow Object Detection API?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to add audio to Tensorflow Object Detection API?
#1
I'm trying to add audio output for the Tensorflow object detection API on the raspberry pi. For example, if it detects a person from the camera, I'm trying to get the program to say "person". When I use the code below for speech output, I get the error message "TypeError: expected str(string), bytes or os". This is likely because I'm assigning the wrong value to speech. Does anyone know what the right variable/value for the object label?

from subprocess import call
...

speech = classes
call(["espeak", speech)]

- Thanks in advance
Reply
#2
Quote:I get the error message
try (add quotes to make string):
speech = 'classes'
Please always show the entire unaltered error traceback as it contains important process information (use error tags)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Using .pb saved model for object detection hobbyist 2 1,169 Aug-03-2022, 05:55 AM
Last Post: hobbyist
  (OpenCV) Help to improve code for object detection and finding center of it saoko 0 1,199 May-14-2022, 05:34 PM
Last Post: saoko
  Improves performance on socket multi-threaded servers for object detection pennant 1 1,893 Aug-31-2021, 08:43 AM
Last Post: Larz60+
  Object detection on ground via the use of geo/sat UAV images hobbyist 2 2,084 Jan-23-2021, 11:57 PM
Last Post: hobbyist
  Object and lane line detection Gregerwhut 2 1,915 Nov-04-2019, 10:22 AM
Last Post: Gregerwhut
  object detection program netrudra5 0 4,258 Feb-26-2019, 04:01 PM
Last Post: netrudra5
  Measure accuracy of Object Detection Shameendra 2 2,678 Nov-19-2018, 01:04 PM
Last Post: Shameendra
  Object Detection that records the number of secs the face is not detected trabis03 1 2,541 Jul-21-2017, 04:14 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020