This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download the pyaudio from https://github.com/intxcc/pyaudio_portaudio | |
import deepspeech | |
import numpy as np | |
import os | |
import pyaudio | |
import time | |
import samplerate as sr | |
import nnresample | |
from scipy import signal,io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[StructLayout(LayoutKind.Sequential, Pack = 0)] | |
public struct IO_STATUS_BLOCK | |
{ | |
public uint status; | |
public IntPtr information; | |
} | |
[DllImport("ntdll.dll", ExactSpelling = true)] | |
public static extern uint NtQueryEaFile( | |
SafeFileHandle handle, | |
out IO_STATUS_BLOCK ioStatus, |