Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
272 views
in Technique[技术] by (71.8m points)

audio - android QPython start falure

When I run this script in Qpyton on the samsung Tab A it returns with "start: must be root" i have not found a way to give it root acsess within the app so im kind of lost. Any help would mean alot.

#importing the modules
from gtts import gTTS
import os
from PIL import Image

pic1 = Image.open("---.png")
pic2 = Image.open("----.png")

#this is the imput and response
while True:
    a = input("")

    if a == "greetings computer":
        os.system("start greetings.mp3")

    if a == "what are we doing today":
        os.system("start talk.mp3")
    
    if a == "who are the ---":
        os.system("start ---.mp3")

    if a == "how are the --- influential":
        os.system("start how---.mp3")

    if a == "why did we choose the ---":
        os.system("start why---.mp3")

    if a == "--- picture":
        pic1.show()

    if a == "who is ----":
        os.system("start ----.mp3")

    if a == "how is ---- influential":
        os.system("start what----.mp3")

    if a == "why did we choose ----":
        os.system("start why----.mp3")

    if a == "---- picture":
        pic2.show()

question from:https://stackoverflow.com/questions/65878039/android-qpython-start-falure

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...