hi i get synax error for my script ... import tkinter as tk
import vlc
import os
import requests
import json
from PIL import ImageTk, Image
from dotenv import load\_dotenv
from google.cloud import speech\_v1p1beta1 as speech
from google.cloud.speech\_v1p1beta1 import enums
from google.oauth2 import service\_account
import webbrowser
from PIL import Image

# open the image file
img = Image.open('C:/Users/Dan.QTIS/Desktop/Dan-Special/Tests/cool.jpg')

# show the image
img.show()

# load environment variables
load\_dotenv()

# create VLC instance
player = vlc.Instance('--no-xlib')

# create window
root = tk.Tk()

# create image
img = Image.open(os.path.join("images", "C:/Users/Dan.QTIS/Desktop/Dan-Special/Tests/cool.jpg"))
img = img.resize((150, 150))
img\_tk = ImageTk.PhotoImage(img)
panel = tk.Label(root, image=img\_tk)
panel.pack(pady=20)

# create VLC media player
audio\_file = os.path.join("audio", "C:/Users/Dan.QTIS/Desktop/Dan-Special/Tests/audio/Mally\_Mall\_feat.\_Ty\_Dolla\_ign\_B-Real\_-\_Mary\_And\_Molly.mp3")
media = player.media\_new\_path(audio\_file)
player = vlc.MediaPlayer()
player.set\_media(media)

# create play button
def play\_button\_clicked():
 player.play()

play\_button = tk.Button(root, text="Play", command=play\_button\_clicked)
play\_button.pack(pady=10)

# create pause button
def pause\_button\_clicked():
 player.pause()

pause\_button = tk.Button(root, text="Pause", command=pause\_button\_clicked)
pause\_button.pack(pady=10)

# create stop button
def stop\_button\_clicked():
 player.stop()

stop\_button = tk.Button(root, text="Stop", command=stop\_button\_clicked)
stop\_button.pack(pady=10)

# create rewind button
def rewind\_button\_clicked():
 current\_time = player.get\_time()
 player.set\_time(current\_time - 5000)

rewind\_button = tk.Button(root, text="<< 5s", command=rewind\_button\_clicked)
rewind\_button.pack(pady=10)

# create fast forward button
def forward\_button\_clicked():
 current\_time = player.get\_time()
 player.set\_time(current\_time + 5000)

forward\_button = tk.Button(root, text="5s >>", command=forward\_button\_clicked)
forward\_button.pack(pady=10)

# create text-to-speech button
def text\_to\_speech\_button\_clicked():
 credentials = service\_account.Credentials.from\_service\_account\_file(os.getenv("GOOGLE\_APPLICATION\_CREDENTIALS"))
 client = speech.SpeechClient(credentials=credentials)

 synthesis\_input = speech.SynthesisInput(text="Hello, this is a text-to-speech demonstration using Google Cloud.")

 voice = speech.VoiceSelectionParams(
 language\_code="en-US",
 name="en-US-Wavenet-D"
 )

 audio\_config = speech.AudioConfig(
 audio\_encoding=speech.AudioEncoding.LINEAR16
 )

 response = client.synthesize\_speech(
 input=synthesis\_input,
 voice=voice,
 audio\_config=audio\_config
 )

 with open(os.path.join("audio", "text\_to\_speech.wav"), "wb") as audio\_file:
 audio\_file.write(response.audio\_content)

text\_to\_speech\_button = tk.Button(root, text="Text-to-Speech", command=text\_to\_speech\_button\_clicked)
text\_to\_speech\_button.pack(pady=10)

# create speech-to-text button
def speech\_to\_text\_button\_clicked():
 recognizer = sr.Recognizer()
 microphone = sr.Microphone()

 with microphone as source:
 recognizer.adjust\_for\_ambient\_noise(source)
 print("Say something!")
 audio = recognizer.listen(source)

 try:
 # Recognize speech using Google Speech Recognition API
 GOOGLE\_CLOUD\_SPEECH\_CREDENTIALS = os.getenv('GOOGLE\_CLOUD\_SPEECH\_CREDENTIALS')
 text = recognizer.recognize\_google\_cloud(audio, credentials\_json=GOOGLE\_CLOUD\_SPEECH\_CREDENTIALS)
 print(f"You said: {text}")
 except sr.UnknownValueError:
 print("Google Speech Recognition could not understand audio")
 except sr.RequestError as e:
 print(f"Could not request results from Speech Recognition service; {e}")
 except sr.UnknownValueError:
 print("Oops! Didn't catch that")

speech\_to\_text\_button = tk.Button(root, text="Speech-to-Text", command=speech\_to\_text\_button\_clicked)
speech\_to\_text\_button.pack(pady=10)

root.mainloop()
안녕하세요 내 스크립트에 대한 구문 오류가 발생합니다 ... tkinter를 tk로 가져 오기import vlcimport os요청 가져오기json 가져오기PIL에서 ImageTk, Image에서 load\_dotenv를 가져옵니다.google.cloud에서 speech\_v1p1beta1을 speech로 가져옵니다.google.cloud.speech\_v1p1beta1에서 열거형을 가져옵니다.google.oauth2에서 서비스\_계정 가져오기웹브라우저 가져오기PIL에서 이미지 가져오기# 이미지 파일 열기img = Image.open('C:/Users/Dan.QTIS/Desktop/Dan-Special/Tests/cool.jpg')# 이미지 표시img.show()# 환경 변수 로드load\_dotenv()# VLC 인스턴스 생성player = vlc.Instance('--no-xlib')# 창 생성root = tk.Tk()# 이미지 생성img = Image.open(os.path.join("images", "C:/Users/Dan.QTIS/Desktop/Dan-Special/Tests/cool.jpg"))img = img.resize((150, 150))img\_tk = ImageTk.PhotoImage(img)panel = tk.Label(root, image=img\_tk)panel.pack(pady=20)# VLC 미디어 플레이어 생성audio\_file = os.path.join("audio", "C:/Users/Dan.QTIS/Desktop/Dan-Special/Tests/audio/Mally\_Mall\_feat.\_Ty\_Dolla\_ign\_B-Real\_-\_Mary\_And\_Molly.mp3")미디어 = 플레이어.미디어\_새\_경로(오디오\_파일)player = vlc.MediaPlayer()player.set\_media(미디어)# 재생 버튼 생성def play\_button\_clicked(): player.play()play\_button = tk.Button(root, text="재생", command=play\_button\_clicked)play\_button.pack(pady=10)# 일시 정지 버튼 생성def pause\_button\_clicked(): player.pause()pause\_button = tk.Button(root, text="Pause", command=pause\_button\_clicked)pause\_button.pack(pady=10)# 중지 버튼 생성def stop\_button\_clicked(): player.stop()stop\_button = tk.Button(root, text="Stop", command=stop\_button\_clicked)stop\_button.pack(pady=10)# 되감기 버튼 생성def rewind\_button\_clicked(): current\_time = player.get\_time() player.set\_time(current\_time - 5000)되감기\_button = tk.Button(root, text="<< 5s", command=rewind\_button\_clicked)rewind\_button.pack(pady=10)# 빨리 감기 버튼 생성def forward\_button\_clicked(): current\_time = player.get\_time() player.set\_time(current\_time + 5000)forward\_button = tk.Button(root, text="5s >>", command=forward\_button\_clicked)forward\_button.pack(pady=10)# 텍스트 음성 변환 버튼 생성def text\_to\_speech\_button\_clicked(): credentials = service\_account.Credentials.from\_service\_account\_file(os.getenv("GOOGLE\_APPLICATION\_CREDENTIALS")) client = speech.SpeechClient(자격 증명=자격 증명) synthesis\_input = speech.SynthesisInput(text="안녕하세요, Google Cloud를 사용한 텍스트 음성 변환 데모입니다.") voice = speech.VoiceSelectionParams( language\_code="en-US", name="en-US-Wavenet-D" ) audio\_config = speech.AudioConfig( audio\_encoding=speech.AudioEncoding.LINEAR16 ) response = client.synthesize\_speech( 입력=합성\_입력, voice=voice, audio\_config=audio\_config ) with open(os.path.join("audio", "text\_to\_speech.wav"), "wb") as audio\_file: audio\_file.write(response.audio\_content)text\_to\_speech\_button = tk.Button(root, text="Text-to-Speech", command=text\_to\_speech\_button\_clicked)text\_to\_speech\_button.pack(pady=10)# 음성-텍스트 변환 버튼 생성def speech\_to\_text\_button\_clicked(): recognizer = sr.Recognizer() 마이크 = sr.Microphone() 마이크를 소스로 사용합니다: recognizer.adjust\_for\_ambient\_noise(source) print("뭐라고 말해!") 오디오 = 인식기.듣기(소스) try: # Google 음성 인식 API를 사용하여 음성 인식하기 GOOGLE\_CLOUD\_SPEECH\_CREDENTIALS = os.getenv('GOOGLE\_CLOUD\_SPEECH\_CREDENTIALS') text = recognizer.recognize\_google\_cloud(audio, credentials\_json=GOOGLE\_CLOUD\_SPEECH\_CREDENTIALS) print(f"{텍스트}라고 말했습니다.") sr.UnknownValueError를 제외합니다: print("Google 음성 인식이 오디오를 이해할 수 없습니다.") sr.RequestError를 e로 제외합니다: print(f"음성 인식 서비스에서 결과를 요청할 수 없습니다; {e}") sr.UnknownValueError를 제외합니다: print("죄송합니다! 인식하지 못했습니다")speech\_to\_text\_button = tk.Button(root, text="음성-텍스트 변환", command=speech\_to\_text\_button\_clicked)speech\_to\_text\_button.pack(pady=10)root.mainloop()