Git Product home page Git Product logo

pie's People

Contributors

baicaixmj avatar baiduxuminjie avatar buchongyu2 avatar cynricshu avatar dependabot[bot] avatar dpcnx avatar jianbinhe avatar l00231033 avatar sailingsun avatar wanglihaoo avatar xiashuai-mr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pie's Issues

[JAVA] Make config classes as POJO

Similar issue like #56 .
Why not make config classes like com.baidu.acu.pie.model.ChannelConfig as POJO?
Users need to re-create a same POJO class to realize Dependency Injection.
I think DI is very common in java development, so please consider to do some modifications.

Auto slice data based on fragment size

problem

Java sdk does not slice audio data automatically before send it to streaming server.
It brings two problems:

  1. if length of audio data exceeds grpc max inbound size, the grpc server will raise an exception
  2. it asks sdk user to take care of slicing input audio, but usually they are not capable to do that

solution

Java sdk can slice the audio data automatically based on configuration (see AsrClientGrpcImpl#getFragmentSize)

Fail in running client_demo_simple.py on linux platform

问题描述:
采用百度流式识别开发,

采用https://github.com/baidubce/pie中client_demo_simple.py

修改增加username和password

执行后在获取识别结果时返回错误

2020-04-02 14:49:38,231 - client_demo_simple.py[line:39] - ERROR: encounter an error: <_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "Socket closed"
debug_error_string = "{"created":"@1585810168.220296937","description":"Error received from peer ipv4:182.61.0.38:8051","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"Socket closed","grpc_status":14}"

, will create a new channel and retry audio! times : 1、

重现步骤:

  1. 已在CentOS 6.8 和 python2.7.13 重现
  2. 已在CentOS 8.0 和 python 3.6.8 重现
  3. Windows 7 和python3.8上都测试成功,未出现问题

standard setters for com.baidu.acu.pie.model.AsrConfig

The comment in AsrConfig says it will not provide setters, but actually AsrConfig has methods that can modify its fields.

If modifier is allowed, why not provide standard setters (setXXX)? If standard setters provided,
this class becomes a POJO then can be used more conveniently.

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.