Skip to content

Instantly share code, notes, and snippets.

@canard0328
canard0328 / cloud_tts.py
Created April 15, 2018 11:02
Synthesize text for English shadowing training using Google Could TTS (WaveNet)
# coding: utf-8
def synthesize_text(text, path):
import os
from google.cloud import texttospeech
from pydub import AudioSegment
client = texttospeech.TextToSpeechClient()
input_text = texttospeech.types.SynthesisInput(text=text)
@hansrajdas
hansrajdas / vim.md
Last active March 27, 2025 19:28
VIM commands

Acronym

  • C-a ==> CTRL-a

Modes in VIM

  • Normal mode(n) When we open mode, the default mode is normal
  • Insert mode(i) When we want to insert some text, we press i, a or A etc to go in insert mode
  • Command mode(c) When we type colon(:) from normal mode, we enters command mode
  • Visual mode(v) Using v or V or C-i

Start VIM