Autore: mhm

pyspeex from Nuance

 

apt-get libspeex-dev

apt-get libspeexdsp-dev.

apt-get speex

pip install cython

 

extract pyspeex directory

extract speex source code (speex.org) as “speex” directory inside pyspeex dir

CPPFLAGS=”-I./speex/includes” LDFLAGS=”-L./libsspeex” python setup.py install

 


 

https://github.com/NuanceDev/pyspeex

 

 

 

 

 

 

 


 

aaaa

 

 

 

Test ALSA audio working

How to get the audio working on your Raspberry PI?

You have to install three packages:

  • The ALSA utilities:
    sudo apt-get install alsa-utils
  • MP3 tools:
    sudo apt-get install mpg321
  • WAV to MP3 conversion tool:
    sudo apt-get install lame

Load the sound driver:

  • sudo modprobe snd-bcm2835

To check if the driver is loaded you can type:

  • sudo lsmod | grep 2835

Select the output device for sound (0=auto, 1=analog, 2=HDMI):

  • sudo amixer cset numid=2

Test the installation:

  • aplay /usr/share/sounds/alsa/Front_Center.wav
  • speaker-test -t sine -f 440 -c 2 -s 1
  • mpg321 “Mannish Boy.mp3”

It you get the following error message:

  • ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front

Edit the file /usr/share/alsa/alsa.conf:

  • sudo nano /usr/share/alsa/alsa.conf
  • change the line “pcm.front cards.pcm.front” to “pcm.front cards.pcm.default”

If you are using HDMI and cannot hear any audio at all change the following PI configuration setting:

  • edit the RasPI configuration file:
    sudo nano /boot/config.txt
  • uncomment the line:
    hdmi_drive=2
  • save the file and reboot the PI

Resources:

 


Raspberry PI – getting audio working

Guide to “useradd” Command in Linux

Basic syntax of command is:

useradd [options] username

When we add a new user in Linux with ‘useradd‘ command it gets created in locked state and to unlock that user account, we need to set a password for that account with ‘passwd‘ command.

[root@tecmint ~]# useradd tecmint

[root@tecmint ~]# passwd tecmint
Changing password for user tecmint.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.

Once a new user created, it’s entry automatically added to the ‘/etc/passwd‘ file. The file is used to store users information and the entry should be.

tecmint:x:504:504:tecmint:/home/tecmint:/bin/bash

 

 


The Complete Guide to “useradd” Command in Linux – 15 Practical Examples

Visual Studio – Visual C++ for Linux Development

Visual C++ for Linux Development


Visual C++ for Linux Development

How To Stress Test CPU and Memory On a Linux

  1. stress : It is a simple workload generator for POSIX systems. It imposes a configurable amount of CPU, memory, I/O, and disk stress on the system. It is written in C, and is free software licensed under the GPLv2. It is not a benchmark, but is rather a tool designed
  2. stress-ng : It is an updated version of stress tool and it will stress test a server for the following features:
    1. CPU compute
    2. Cache thrashing
    3. Drive stress
    4. I/O syncs
    5. VM stress
    6. Socket stressing
    7. Context switching
    8. Process creation and termination
    9. It includes over 60 different stress tests, over 50 CPU specific stress tests that exercise floating point, integer, bit manipulation and control flow, over 20 virtual memory stress tests.

 

http://www.cyberciti.biz/faq/stress-test-linux-unix-server-with-stress-ng/