在线观看www成人影院-在线观看www日本免费网站-在线观看www视频-在线观看操-欧美18在线-欧美1级

電子發(fā)燒友App

硬聲App

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評(píng)論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會(huì)員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識(shí)你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示
創(chuàng)作
電子發(fā)燒友網(wǎng)>電子資料下載>電子資料>機(jī)器人假肢開源構(gòu)建

機(jī)器人假肢開源構(gòu)建

2023-06-28 | zip | 0.00 MB | 次下載 | 免費(fèi)

資料介紹

描述

你好!!我確實(shí)有過一些時(shí)間來構(gòu)建一個(gè)人體模型,并讓它發(fā)揮作用。

如果您對本文的任何部分感興趣或認(rèn)為其中任何部分對您有用,請隨時(shí)提問或評(píng)論,我會(huì)很高興地回答您。

  • 朋友你好,這是測試手指電機(jī)的運(yùn)動(dòng),電機(jī)沒有運(yùn)動(dòng)
poYBAGN1ICmAEzHfAAhc8AND30U688.jpg
?

#!/usr/bin/env python2
# -*- coding: utf-8 -*-

from AssistantGif_ui import *
from PyQt5.QtWidgets import QMainWindow,QApplication,QLabel
from PyQt5.Qt import QMovie
import speech_recognition as sr
import pyttsx3
import pyjokes
import datetime
import time
import sys #Importamos módulo sys
from PyQt5 import uic, QtWidgets #Importamos módulo uic y Qtwidgets

qtCreatorFile = "AssistantGif.ui" # Nombre del archivo UI aquí.

Ui_MainWindow, QtBaseClass = uic.loadUiType(qtCreatorFile) #El modulo ui carga el archivo

class VentanaPrincipal(QtWidgets.QMainWindow, Ui_MainWindow): #Abrimos la ventana
    def __init__(self): #Constructor de la clase
        QtWidgets.QMainWindow.__init__(self) #Constructor
        Ui_MainWindow.__init__(self) #Constructor
        self.setupUi(self) # Método Constructor de la ventana
        self.I = QLabel(self)
        self.I.resize(450,500)
        self.movi = QMovie("original.gif")
        self.I.setMovie(self.movi)
        self.movi.start()

        the_line = QtWidgets.QLineEdit(self) #  Open a box to write
        the_line.move(550, 140) #  Changes the location of the box
        the_line.resize(200,25)
        the_line.setStyleSheet("color: rgb(255, 255, 255);")


        
        #Aquí irá nuestro código funcional
listener = sr.Recognizer()
engine = pyttsx3.init()
rate = engine.getProperty('rate')
engine.setProperty("rate", 130)
volume = engine.getProperty('volume')
engine.setProperty('volume', volume-0.4)
voices = engine.getProperty('voices')
engine.setProperty('voice',voices[0].id)
now = datetime.datetime.now()



def speak(audio):
    print('Assistant: ' + audio)
    engine.say(audio)
    engine.runAndWait()

def timeSett():
    currentH = int(datetime.datetime.now().hour)
    if currentH >= 0 and currentH < 12:
        speak('Good Morning!')

    if currentH >= 12 and currentH < 18:
        speak('Good Afternoon!')

    if currentH >= 18 and currentH != 0:
        speak('Good Evening!')

timeSett()

def talk(text):
    engine.say(text)
    engine.runAndWait()

def take_command():
    try:
        with sr.Microphone() as source:
            print('Listenning...')
            voice = listener.listen(source)
            global command  
            command = listener.recognize_google(voice, language='en-english')
            command = command.lower()
            if 'Assistant' in command:
                command = command.replace('Assistant','')
                print(command)

        if __name__ == "__main__":
            app =  QtWidgets.QApplication(sys.argv)
            window = VentanaPrincipal()
            window.show()
            app.exec_()

                
                
    except:
        pass
    return command

                            


def run_Assistant():
    command =  take_command()
    print('command')

    if 'what time is it' in command:
        print("Current date and time : ")
        print(now.strftime("The time is %H:%M"))
        speak(now.strftime("The time is %H:%M"))
        engine.runAndWait()
    elif 'goodbye' in command:
        print("Hasta la vista... Baby!")
        speak("Hastala vista...Baby!")         
        exit()
    elif 'what is my phone number' in command:
        print('xx xx xx xx xx is your phone number sir') 
        talk('xx xx xx xx xx is your phone number sir')
    elif 'tell me a joke' in command:
        talk(pyjokes.get_joke('en'))
    elif 'what time is it' in command:
        print("Current date and time : ")
        print(now.strftime("The time is %H:%M"))
        speak(now.strftime("The time is %H:%M"))
        engine.runAndWait()
    elif 'goodbye' in command:
        print("Hasta la vista... Baby!")
        speak("Hastala vista...Baby!")         
        exit()
    else:
        talk('just now im not ready for this')




while True:
    run_Assistant() 

下載該資料的人也在下載 下載該資料的人還在閱讀
更多 >

評(píng)論

查看更多

下載排行

本周

  1. 1DD3118電路圖紙資料
  2. 0.08 MB   |  1次下載  |  免費(fèi)
  3. 2AD庫封裝庫安裝教程
  4. 0.49 MB   |  1次下載  |  免費(fèi)
  5. 3PC6206 300mA低功耗低壓差線性穩(wěn)壓器中文資料
  6. 1.12 MB   |  1次下載  |  免費(fèi)
  7. 4網(wǎng)絡(luò)安全從業(yè)者入門指南
  8. 2.91 MB   |  1次下載  |  免費(fèi)
  9. 5DS-CS3A P00-CN-V3
  10. 618.05 KB  |  1次下載  |  免費(fèi)
  11. 6海川SM5701規(guī)格書
  12. 1.48 MB  |  次下載  |  免費(fèi)
  13. 7H20PR5電磁爐IGBT功率管規(guī)格書
  14. 1.68 MB   |  次下載  |  1 積分
  15. 8IP防護(hù)等級(jí)說明
  16. 0.08 MB   |  次下載  |  免費(fèi)

本月

  1. 1貼片三極管上的印字與真實(shí)名稱的對照表詳細(xì)說明
  2. 0.50 MB   |  103次下載  |  1 積分
  3. 2涂鴉各WiFi模塊原理圖加PCB封裝
  4. 11.75 MB   |  89次下載  |  1 積分
  5. 3錦銳科技CA51F2 SDK開發(fā)包
  6. 24.06 MB   |  43次下載  |  1 積分
  7. 4錦銳CA51F005 SDK開發(fā)包
  8. 19.47 MB   |  19次下載  |  1 積分
  9. 5PCB的EMC設(shè)計(jì)指南
  10. 2.47 MB   |  16次下載  |  1 積分
  11. 6HC05藍(lán)牙原理圖加PCB
  12. 15.76 MB   |  13次下載  |  1 積分
  13. 7802.11_Wireless_Networks
  14. 4.17 MB   |  12次下載  |  免費(fèi)
  15. 8蘋果iphone 11電路原理圖
  16. 4.98 MB   |  6次下載  |  2 積分

總榜

  1. 1matlab軟件下載入口
  2. 未知  |  935127次下載  |  10 積分
  3. 2開源硬件-PMP21529.1-4 開關(guān)降壓/升壓雙向直流/直流轉(zhuǎn)換器 PCB layout 設(shè)計(jì)
  4. 1.48MB  |  420064次下載  |  10 積分
  5. 3Altium DXP2002下載入口
  6. 未知  |  233089次下載  |  10 積分
  7. 4電路仿真軟件multisim 10.0免費(fèi)下載
  8. 340992  |  191390次下載  |  10 積分
  9. 5十天學(xué)會(huì)AVR單片機(jī)與C語言視頻教程 下載
  10. 158M  |  183342次下載  |  10 積分
  11. 6labview8.5下載
  12. 未知  |  81588次下載  |  10 積分
  13. 7Keil工具M(jìn)DK-Arm免費(fèi)下載
  14. 0.02 MB  |  73815次下載  |  10 積分
  15. 8LabVIEW 8.6下載
  16. 未知  |  65989次下載  |  10 積分
主站蜘蛛池模板: 99精品国产在热久久 | 天天做天天爽天天谢 | 四虎免费影院4hu永久免费 | 国产亚洲欧洲人人网 | 狠狠综合欧美综合欧美色 | 亚洲色图吧 | 久久久噜噜噜 | 九九久久国产精品大片 | 天天曰天天操 | 日本高清网站 | 国产精品久久永久免费 | 中文字幕在线视频第一页 | 丁香在线视频 | 亚洲人成电影院在线观看 | 亚洲爽视频 | 涩五月婷婷 | 免费啪视频| 欧美一区二区三区影院 | www.xxx.日本| 色香欲亚洲天天综合网 | 中文字幕在线永久在线视频2020 | 日本系列 1页 亚洲系列 | 伊人久久狼人 | 国内精品久久久久影院免费 | 男女免费在线视频 | 99久久国产免费 - 99久久国产免费 | 丁香六月婷婷综合 | 亚洲欧美网| 久久人人做人人玩人精品 | 日本a级精品一区二区三区 日本a级特黄三级三级三级 | 27pao强力打造高清免费高 | 一级视频在线观看免费 | 二级片在线 | 99精品偷自拍 | 水果视频色版 | 91久久麻豆 | 91aaa免费观看在线观看资源 | 婷婷色六月 | 狠狠色丁香婷婷综合小时婷婷 | 加勒比综合| 欧美成人eee在线 |