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
#[cfg(test)] | |
mod tests { | |
use super::*; | |
use windows::Win32::Media::timeGetTime; | |
use windows::Win32::Media::timeGetDevCaps; | |
use windows::Win32::Media::timeBeginPeriod; | |
use windows::Win32::Media::TIMECAPS; | |
use windows::Win32::Media::TIMERR_NOERROR; | |
use std::mem; | |
#[tokio::test] |
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
""" | |
Train a neural network to implement the discrete Fourier transform | |
""" | |
from keras.models import Sequential | |
from keras.layers import Dense | |
import numpy as np | |
import matplotlib.pyplot as plt | |
N = 32 | |
batch = 10000 |
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
// only tested with 1 channel wav file | |
const { OpusEncoder } = require('@discordjs/opus'); | |
let fs = require('fs'); | |
wav_file = fs.readFileSync('somefile.wav'); | |
const WaveFile = require('wavefile').WaveFile; | |
let wav = new WaveFile(wav_file); | |
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
import os | |
import sys | |
import logging | |
import itertools | |
from ruamel.yaml import YAML # Github actions needs yaml 1.2 | |
build_settings = ['disable_intrinsics', 'fixed_point', 'custom_modes'] | |
platforms = ['win', 'linux', 'mac', 'ios', 'android'] | |
archs = ['x86', 'x86_64', 'armv7', 'arm64'] |