HN user

chrra

2 karma
Posts0
Comments3
View on HN
No posts found.

There's install instruction under “How to Use” and example code in the .ipynb files. It's mostly geared towards TTS, but it seems to work with voice recordings too.

  newtype X = X (IORef Int)
  instance Num X where
    fromInteger = X . unsafePerformIO . newIORef . fromInteger
  instance Eq X where
    (X a) == (X b) = unsafePerformIO $ do
                       x <- readIORef a
                       y <- readIORef b
                       writeIORef a $ x+1
                       return $ x == y

  ghci> a <- fmap X $ newIORef 1
  ghci> a == 1 && a == 2
  True
Edit: formatting.