• 此项目
    • 正在载入...
  • Sign in

xuning / sherpaonnx

96x96
转到一个项目
Toggle navigation
  • 项目
  • 群组
  • 代码片段
  • 帮助
Toggle navigation pinning
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • sherpaonnx
  • ..
  • onnx
  • OnlineLMConfig.java
  • Add java websocket support (#137) · b70d40f4 ...
    b70d40f4 浏览文件
    * add decode example for mic
    
    * some changes to README.md
    
    * add java websocket srv
    
    * change to readwav to static
    
    * make some changes to code comments
    
    * little change for readme.md
    
    * fix bug about multiple threads
    
    * made little modification
    
    * add protocol in readme, removed static Queue and add lmConfig
    
    ---------
    
    Co-authored-by: root <root@localhost.localdomain>
    zhaomingwork authored 2023-05-18 10:35:40 +0800
OnlineLMConfig.java 401 字节
原文件 审查 历史 永久链接
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
/*
 * // Copyright 2022-2023 by zhaoming
 */

package com.k2fsa.sherpa.onnx;

public class OnlineLMConfig {
  private final String model;
  private final float scale;

  public OnlineLMConfig(String model, float scale) {
    this.model = model;
    this.scale = scale;
  }

  public String getModel() {
    return model;
  }

  public float getScale() {
    return scale;
  }
}