VihangaA

Members
  • Content Count

    10
  • Joined

  • Last visited

  1. I tried! But it didnt work! But when I execute dir, it shows the file
  2. VihangaA

    Mic not working Alsamixer/Orange Pi Zero

    I went through on this topic and did some modifications according to that. It gives no error, but when I'm trying to play that audio file which I recorded, it gives me an error saying test2.wav: No such file or directory.
  3. Hi! Earlier I had arecord: pcm_read:2032: read error: Input/output error when I'm trying to record. After I did some modifications which you mentioned above, it worked! (gives no error and terminates after times up when I set a time duration). But when I'm trying to play that audio using aplay test2.wav I got an error saying that test2.wav: No such file or directory. But the file already exists. So how can I sort it out? Thanks!
  4. VihangaA

    Mic not working Alsamixer/Orange Pi Zero

    Hi!Thanks for the reply. arecord -D plughw:0,0 -f cd ./test2.wav command gives the same error (arecord: pcm_read:2103: read error: Input/output error)! Also espeak commands you mentioned above are also not working! Is that means the bug is in hardware? I use condenser mic which is used in Arduino projects.
  5. I want to record sound using Orange Pi Zero. I connected MIC1PIN in single header in Orange Pi Zero and GND to my mic(I'm using simple mic which is used for arduino). Aplay works fine, but when I tried to execute arecord it gives an error. root@orangepizero:~# arecord -Dhw:0 -f cd test2.wav Recording WAVE 'test2.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo arecord: pcm_read:2103: read error: Input/output error When I execute arcord -l I got this, root@orangepizero:~# arecord -l **** List of CAPTURE Hardware Devices **** card 0: Codec [H3 Audio Codec], device 0: CDC PCM Codec-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 My .asoundrc file looks like this. pcm.!default{ type hw card 0 device 0 } ctl.!default{ type hw card 0 } I use this kind of mic. How can I sort this out? Thanks!
  6. VihangaA

    Orange Pi Zero with audio (ARMBIAN 5.38)

    yeah, at the end I had to install mpg123. Now it works. also had to connect an amplifier to the speaker.
  7. Now it works! Thank you very much! I had to create asound.conf file. Also connected an amplifier to speaker.
  8. I have Armbian 5.38 I connected pin 8 and 2 (also 7 and 2) in single header of Orange PI Zero. When I execute the command u mentioned above (aplay -l) I get the same results. BTW Master and PCM channels are not in Alsamixer and there was no file called .asoundrc. So I created a one. pcm.!default{ type hw card 0 } ctl.!default{ type hw card 0 } But when I execute speaker-test I get no sound but this. speaker-test 1.1.3 Playback device is default Stream parameters are 48000Hz, S16_LE, 1 channels Using 16 octaves of pink noise Rate set to 48000Hz (requested 48000Hz) Buffer size range from 256 to 262144 Period size range from 128 to 32768 Using max buffer size 262144 Periods = 4 I tried to play a music using aplay song.mp3 but I got, aplay: set_params:1299: Sample format non available Available formats: - S16_LE - S32_LE So how can I sort this out? Thank you
  9. VihangaA

    Orange Pi Zero with audio (ARMBIAN 5.38)

    Hi psz! Thanks for the reply. I connected speaker using pin 8 and pin 2 in single header, did speaker-test. But it didnt work. (also tried pin 7 with pin 2). When I tried to play an audio I got this. root@orangepizero:~# aplay song.mp3 Playing raw data 'song.mp3' : Unsigned 8 bit, Rate 8000 Hz, Mono
  10. HI! Im new to Orange Pi Zero. I want to connect a speaker to my Orange Pi Zero. I went through some websites and forums, there saying that use pin 7 and 8 to speaker. I connected pin 7 to + and pin 8 to -. Then I entered 'speaker-test'. But it doesn't get any sound. root@orangepizero:~# speaker-test speaker-test 1.1.3 Playback device is default Stream parameters are 48000Hz, S16_LE, 1 channels Using 16 octaves of pink noise Rate set to 48000Hz (requested 48000Hz) Buffer size range from 256 to 262144 Period size range from 128 to 32768 Using max buffer size 262144 Periods = 4 was set period_size = 32768 was set buffer_size = 262144 0 - Front Left Time per period = 2.744307 0 - Front Left Time per period = 2.782264 0 - Front Left So how can I test audio in my Orange Pi Zero? Thank you