android


Android AudioRecord return twice more data on read


I have strange situation with recording on Android. I created AudioRecorder with sample rate 8kHz, Mono, PCM 16 bit. But when i call read, it return twice more samples that needed. For example i rite 2 seconds on microphone, which must give 16k samples, but instead it gives 32k samples.
the code running in thread and pretty simple:
numSamples = audioRecord.read(buf, 0, SIMPLE_RECORDER_BUFFER_SIZE);
writer.write(stereo, 0, numSamples)
Does anyone had this issue?

Related Links

Countdown Timer and If Command
How to add a view inside of an editText? (such as when tagging users)
Virtual reality using opengl es 2.0
Text to Speech(TTS) - Android - Portuguese
Multiple SyncAdapter with different Names in Android Account Manager
Converting an Activity to a Fragment
Stop the music and the Service too
Why is my milliseconds count down not consistent?
/arm64/Image to zImage or boot.img
How can I set invisible area in ListView?
How to put Json data in spinners from URL?
Android Permissions Error
OsmDroid MyLocationNewOverlay.enableMyLocation() cause memory leak
How to generate image matrix (which contains pixel intensity value as a form of integer 2d array) from a grayscale image in Android.
How can I Perform networking(save results in the database using volley) based on the result I got from a fragment?
Better alternative to android.utils.Base64 to convert a 10MB video to Base64 String?

Categories

HOME
ns-3
flex
serialization
knitr
xbee
cublas
cq5
tail
python-multithreading
recordrtc
extjs4.2
openstreetmap
glyphicons
easyphp
windows-xp
drive
visual-glitch
dynamically-generated
jboss6.x
dapper-extensions
moses
nstimer
android-things
sqsh
weather
erb
login-script
keras-layer
searchkit
cd
plaintext
preloader
vaadin-charts
servermanager
bluez
podscms
scalding
custom-font
wpas
edit
avx
pdf-conversion
offline.js
cmp
google-photos
objectscript
filenet
donations
smartfoxserver
rocks
stripe-connect
docpad
cubism.js
custom-lists
webjars
xcode-server
dotnetnuke-7
file-uri
hclust
tracker-enabled-dbcontext
database-relations
opl
java-money
vigenere
cgi-bin
evolus-pencil
iced-coffeescript
ocra
avahi
android-broadcast
rrule
mass-assignment
formview
encryption-asymmetric
square-bracket
qscrollarea
cnf
nebula
composite-component
pagedown
wp7test
stacky
cardreader
mysql-error-1205
lr
pylucene
svk
qglwidget
delimited-text
drupal-fivestar
web-garden
pos-for-.net
request-headers
duplex
cuda.net
scrubyt
product-management
dsoframer
netbeans6.1

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile