Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

349
Views
¿Por qué el código no funciona específicamente para las voces (David y Zira) mientras hago el asistente de Jarvis?
import datetime from email.mime import audio import webbrowser import pyttsx3 import speech_recognition as sr import wikipedia engine = pyttsx3.init('sapi5') voices = engine.getProperty('voices') engine.setProperty('voice',voices[1].id) def speak(audio): engine.say(audio) engine.runAndWait() def wishMe(): hour = int(datetime.datetime.now().hour) if hour>=0 and hour<12: speak("Good Morning!") elif hour>=12 and hour<18: speak("Good Afternoon!") else: speak("Good Evening!") speak("I am jarvis sir. Please tell me how may i help you") def takecommand(): r = sr.Recognizer() with sr.Microphone() as source: print("Listening...") r.pause_threshold = 1 audio = r.listen(source) try: print("Recognizing...") query = r.recognize_google(audio, language='en-in') #Using google for voice recognition. print(f"User said: {query}\n") except Exception as e: print("Say that again please...") return "None" return query if __name__=="_main_": wishMe() while True: query = takecommand().lower() if 'wikipedia' in query: speak('searching wikipedia...') query = query.replace("wikipedia","") results = wikipedia.summary(query,sentences=2) speak("According to wikipedia") speak(results) elif'open youtube' in query: webbrowser.open("youtube.com") elif'google' in query: webbrowser.open("google.com")

(He estado tratando de resolver este problema durante una semana, estoy usando código visual para hacer mi código y estoy usando Microsoft Windows 10, hay 2 voces que son Zira y David, pero ambas no funcionan) He intentado agregar otra voz de voicecoreone pero después de hacer todo el procedimiento no se muestra ninguna voz en mi terminal excepto zira y david.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!