Merhaba,
Ben bir sesli asistan yapmaktayım fakat hata vermekte. Olay tam olarak Wikipedia kütüphanesini kullanırken ortaya çıktı. Ben Wikipedia'dan bir şey aratıp bunun sadece 2 cümlesini okutmak istiyorum fakat yapamadım. Yardımcı olan herkese teşekkürler.
[CODE lang="python" title="Sorun"]
if "Vikipedi" in voice:
kisi = record("Kimi sorgulayayım")
print(kisi)
wikipedia.set_lang("tr")
w = wikipedia.page(kisi)
speak(w.content(sentence=2))
[/CODE]
[CODE title="aynı hata"]Traceback (most recent call last):
File "C:\Users\Mete\Desktop\Python_sesli_asistan_OWL-master\OWL.py", line 189, in <module>
response(voice)
File "C:\Users\Mete\Desktop\Python_sesli_asistan_OWL-master\OWL.py", line 62, in response
tospeak = w.content(sentence=2)
TypeError: 'str' object is not callable[/CODE]
Hepsinde birer Tab var. Buraya yapıştırırken kaymış. Verdiği hata;
[CODE title="hata"]Traceback (most recent call last):
File "C:\Users\Mete\Desktop\Python_sesli_asistan_OWL-master\OWL.py", line 188, in <module>
response(voice)
File "C:\Users\Mete\Desktop\Python_sesli_asistan_OWL-master\OWL.py", line 62, in response
speak(w.content(sentence=2))
TypeError: 'str' object is not callable
[/CODE]
Hepsinde birer Tab var. Buraya yapıştırırken kaymış. Verdiği hata;
[CODE title="hata"]Traceback (most recent call last):
File "C:\Users\Mete\Desktop\Python_sesli_asistan_OWL-master\OWL.py", line 188, in <module>
response(voice)
File "C:\Users\Mete\Desktop\Python_sesli_asistan_OWL-master\OWL.py", line 62, in response
speak(w.content(sentence=2))
TypeError: 'str' object is not callable
[/CODE]
[CODE title="aynı hata"]Traceback (most recent call last):
File "C:\Users\Mete\Desktop\Python_sesli_asistan_OWL-master\OWL.py", line 189, in <module>
response(voice)
File "C:\Users\Mete\Desktop\Python_sesli_asistan_OWL-master\OWL.py", line 62, in response
tospeak = w.content(sentence=2)
TypeError: 'str' object is not callable[/CODE]
[CODE title="aynı hata"]Traceback (most recent call last):
File "C:\Users\Mete\Desktop\Python_sesli_asistan_OWL-master\OWL.py", line 189, in <module>
response(voice)
File "C:\Users\Mete\Desktop\Python_sesli_asistan_OWL-master\OWL.py", line 62, in response
tospeak = w.content(sentence=2)
TypeError: 'str' object is not callable[/CODE]