public class VadDumpUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
count |
private java.lang.String |
filePath |
private int |
frameCount |
private java.io.PrintWriter |
labelFile |
private java.io.FileOutputStream |
sourceFile |
private java.io.FileOutputStream |
vadFile |
private java.util.concurrent.ExecutorService |
writeFileExecutorService |
| Constructor and Description |
|---|
VadDumpUtils(java.lang.String path) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
checkDirectoryExists(java.lang.String path) |
private void |
closeVadFile() |
private void |
createVadFile() |
private boolean |
open() |
void |
release() |
void |
write(AudioFrame frame,
byte[] vadResultBytes,
Constants.VadState vadResultState) |
private java.lang.String filePath
private int count
private int frameCount
private java.io.FileOutputStream sourceFile
private java.io.PrintWriter labelFile
private java.io.FileOutputStream vadFile
private final java.util.concurrent.ExecutorService writeFileExecutorService
private boolean checkDirectoryExists(java.lang.String path)
private void createVadFile()
private void closeVadFile()
private boolean open()
public void write(AudioFrame frame, byte[] vadResultBytes, Constants.VadState vadResultState)
public void release()