import os
import sys

# 상위 디렉토리 추가 (for utils.config)
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from utils.config import Config as cfg

# openpibo 라이브러리 경로 추가
sys.path.append(cfg.OPENPIBO_PATH + '/lib')
from speech.speechlib import cSpeech

def translate_f():
  obj = cSpeech(conf=cfg)
  string = "안녕하세요"
  ret = obj.translate(string, to="en")
  print("Input:", string)
  print("Output:", ret)

if __name__ == "__main__":
  translate_f()

2b10cfd017044b3b7bfe853ef637a452b7090380
<mask token>

<mask token>


def translate_f():
    obj = cSpeech(conf=cfg)
    string = '안녕하세요'
    ret = obj.translate(string, to='en')
    print('Input:', string)
    print('Output:', ret)


<mask token>

<mask token>
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
<mask token>
sys.path.append(cfg.OPENPIBO_PATH + '/lib')
<mask token>


def translate_f():
    obj = cSpeech(conf=cfg)
    string = '안녕하세요'
    ret = obj.translate(string, to='en')
    print('Input:', string)
    print('Output:', ret)


if __name__ == '__main__':
    translate_f()

import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from utils.config import Config as cfg
sys.path.append(cfg.OPENPIBO_PATH + '/lib')
from speech.speechlib import cSpeech


def translate_f():
    obj = cSpeech(conf=cfg)
    string = '안녕하세요'
    ret = obj.translate(string, to='en')
    print('Input:', string)
    print('Output:', ret)


if __name__ == '__main__':
    translate_f()

import os
import sys

# 상위 디렉토리 추가 (for utils.config)
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from utils.config import Config as cfg

# openpibo 라이브러리 경로 추가
sys.path.append(cfg.OPENPIBO_PATH + '/lib')
from speech.speechlib import cSpeech

def translate_f():
  obj = cSpeech(conf=cfg)
  string = "안녕하세요"
  ret = obj.translate(string, to="en")
  print("Input:", string)
  print("Output:", ret)

if __name__ == "__main__":
  translate_f()
