This repository has been archived on 2025-08-26. You can view files and clone it, but cannot push or open issues or pull requests.
Files
enginex-mr_series-sherpa-onnx/sherpa-onnx/java-api/src/com/k2fsa/sherpa/onnx/OnlineLMConfig.java
zhaomingwork b70d40f4ab Add java websocket support (#137)
* 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>
2023-05-18 10:35:40 +08:00

24 lines
401 B
Java

/*
* // 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;
}
}