|
|
@@ -18,7 +18,7 @@ class Aques: |
|
|
|
dic_path: str = './aq_dic' |
|
|
|
err = c_int (0) |
|
|
|
aqkoe.AqKanji2Koe_Create.restype = c_void_p |
|
|
|
handle = aqkoe.AqKanji2Koe_Create (dic_path, byref (err)) |
|
|
|
handle = aqkoe.AqKanji2Koe_Create (dic_path.encode ('utf-8'), byref (err)) |
|
|
|
koe: str = '' |
|
|
|
aqkoe.AqKanji2Koe_Convert.restype = c_int |
|
|
|
aqkoe.AqKanji2Koe_Convert (handle, text.encode ('utf-8'), koe, 4096) |
|
|
|