GithubHelp home page GithubHelp logo

takubo_core's Introduction

たくぼーこあ

これはなに

  • たくぼーのコアになる部分です

話し始める前

GET /v2/detect

request

{
    "recog": "ももたろー"
}

response

wake wordだった場合

{
  "text": "いまからね、桃太郎をね、話すよ",
  "state": "talking",
  "behavior":[
    {
        "do_time": 0.0,
        "pose": "track"
    }
  ]
}

違う場合(なにもしない)

{
    "text": "",
    "state": "detect"
}

発話中

GET /v2/talking

request

{
    "regular_title": "momotaro",
    "line_number": 2
}

response

  • 通常文の発話
  • stateがtalkingのレスポンスが帰ってきた場合にのみtakubo.LineNumberをインクリメント
{
    "text": "どんぶらこ、どんぶらこと",
    "state": "talking",
    "behavior":[
        {
            "do_time": 0.0,
            "pose": "track"
        }
    ]
}
  • 次の文章が物忘れ
  • これはstateがforgetなのでtakubo.LineNumberをインクリメントしない
{
    "text": "だれとおばあさんがすんでいたんだっけ",
    "state": "forget",
    "behavior":[
        {
            "do_time": 2.0,
            "pose": "look-up"
        },
        {
            "do_time": 0.0,
            "pose": "track"
        }
    ]
}

物忘れ

request

{
    "regular_title": "momotaro",
    "line_number": 2,
    "target_word" : "おじいさん"
}

response

  • 正解の場合
  • state == talkingなのでtakubo.LineNumberをインクリメント
{
    "text": "そうだ、それそれー",
    "state": "talking",
    "behavior":[
        {
            "do_time": 5.0,
            "pose": "look-up"
        },
        {
            "do_time": 0.0,
            "pose": "track"
        }
    ]
}

不正解の場合

{
    "text": "そうだっけ?",
    "behavior":[
        {
            "do_time": 1.0,
            "pose": "look-up"
        },
        {
            "do_time": 0.0,
            "pose": "track"
        }
    ]
}

port番号

const (
 BackendIP     = "0.0.0.0"
 DynamixelIP   = "0.0.0.0"
 WizWebIP      = "0.0.0.0"
 BackendPort   = "3303"
 DynamixelPort = "5550"
 WizWebPort    = "5551"
)

takubo_core's People

Contributors

ishiyama-tomoya avatar fillu87gyc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.