This file contains hidden or 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 pprint | |
import json | |
import base64 | |
import asyncio | |
import websockets | |
import numpy as np | |
import logging | |
import sounddevice as sd | |
This file contains hidden or 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 json | |
import base64 | |
import asyncio | |
import websockets | |
import numpy as np | |
import logging | |
logging.basicConfig(level=logging.INFO) | |
logger = logging.getLogger(__name__) |
This file contains hidden or 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 asyncio | |
import numpy as np | |
import sounddevice as sd | |
class AsyncAudio: | |
def __init__(self, chunk=1024, channels=1, rate=24000, format='int16'): | |
self.chunk = chunk | |
self.channels = channels | |
self.rate = rate |
This file contains hidden or 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 java.util.List; | |
import java.util.ArrayList; | |
import java.util.Set; | |
import java.util.HashSet; | |
import java.time.LocalDate; | |
import java.util.regex.Pattern; | |
import java.util.regex.Matcher; | |
import java.time.DateTimeException; | |
This file contains hidden or 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 java.util.List; | |
import java.util.ArrayList; | |
import java.util.Set; | |
import java.util.HashSet; | |
import java.time.LocalDate; | |
import java.util.regex.Pattern; | |
import java.util.regex.Matcher; | |
import java.time.DateTimeException; | |
public class MyClass { |
This file contains hidden or 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 java.util.List; | |
import java.util.ArrayList; | |
import java.util.Set; | |
import java.util.HashSet; | |
import java.time.LocalDate; | |
import java.util.regex.Pattern; | |
import java.util.regex.Matcher; | |
import java.time.DateTimeException; | |
public class MyClass { |
This file contains hidden or 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 java.util.List; | |
import java.util.ArrayList; | |
import java.util.Set; | |
import java.util.HashSet; | |
import java.time.LocalDate; | |
import java.util.regex.Pattern; | |
import java.util.regex.Matcher; | |
import java.time.DateTimeException; | |
public class MyClass { |
This file contains hidden or 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
class TestFrame(wx.Frame): | |
def __init__(self, parent=None): | |
super(TestFrame, self).__init__(parent) | |
vbox = wx.BoxSizer(wx.VERTICAL) | |
button1 = wx.Button(self, label="Submit") | |
vbox.Add(button1, 1, wx.EXPAND|wx.ALL) | |
self.SetSizer(vbox) | |
self.Layout() | |
AsyncBind(button1, wx.EVT_BUTTON, self.async_callback) |
This file contains hidden or 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
from asyncio.events import get_event_loop | |
import asyncio | |
import wx | |
import warnings | |
from asyncio.futures import CancelledError | |
from collections import defaultdict | |
GlobalWxAsyncApp = None | |