Comments (7)
在提 issue 前能先看文档 wiki.sipeed.com 吗?
from maixpy-v1_scripts.
Can you be more specific and link the sample code or config for MaixCube? I looked at wiki.sipeed.com but have no idea. Help appreiciated.
from maixpy-v1_scripts.
https://wiki.sipeed.com/soft/maixpy/en/course/media/audio.html
from maixpy-v1_scripts.
https://wiki.sipeed.com/soft/maixpy/zh/course/media/audio.html
from maixpy-v1_scripts.
谢谢回复。我正是按照这些例程来试的。如下是我的代码,和record_wav.py一模一样只是去掉了写文件环节。
打印出来的音频数据全是0。我怀疑是GPIO的端口和MaixCube的不一致?
import image, lcd, time
import audio
from Maix import GPIO, I2S
from fpioa_manager import fm
# user setting
sample_rate = 16000
record_time = 4 #s
# default seting
sample_points = 2048
wav_ch = 2
fm.register(8, fm.fpioa.GPIO0, force=True)
wifi_en = GPIO(GPIO.GPIO0, GPIO.OUT)
wifi_en.value(0)
fm.register(20,fm.fpioa.I2S0_IN_D0, force=True)
fm.register(19,fm.fpioa.I2S0_WS, force=True) # 19 on Go Board and Bit(new version)
fm.register(18,fm.fpioa.I2S0_SCLK, force=True) # 18 on Go Board and Bit(new version)
rx = I2S(I2S.DEVICE_0)
rx.channel_config(rx.CHANNEL_0, rx.RECEIVER, align_mode=I2S.STANDARD_MODE)
rx.set_sample_rate(sample_rate)
print(rx)
frame_cnt = record_time*sample_rate//sample_points
for i in range(frame_cnt):
tmp = rx.record(sample_points*wav_ch)
print(tmp.to_bytes())
from maixpy-v1_scripts.
from maixpy-v1_scripts.
https://github.com/sipeed/MaixPy_scripts/blob/master/modules/others/es8374/es8374.py 能用,多谢。
from maixpy-v1_scripts.
Related Issues (20)
- network_wiznet5k.py SPI id HOT 3
- not able access bind() for socket communication. HOT 3
- mlx90640 sensor using i2c
- maixpydunion显示自定的中文字符无法正常显示。
- Maix Dock 支援 Uart or Serial通訊嗎? HOT 2
- ValueError: [MAIXPY]kpu: load_flash error:2006, ERR_NO_MEM: memory not enough
- Sipeed Maixpy Amigo and Cube, on board mic don't work HOT 2
- ENOENT error HOT 2
- windows pull代码错误
- How to build speech_recognizer kmodel?! HOT 2
- socket.send 和 socket.write 不返回
- Please add example script to get raw data from mic array. HOT 1
- play video
- No module named ‘speech_recognition’ HOT 3
- FileName with Asterisk causes issues on some OSes (demo_lcd_800*480.py) HOT 1
- Mono microphone
- Problem running kmodel for yolo 20 HOT 1
- 请问Maixduino可以从Type-C口读数据吗?
- How to create Model file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maixpy-v1_scripts.