whisper_main.py:
- Remove RobotEar.start_recording() and record_callback() which called
the nonexistent sd.start_stream() API (correct API is sd.InputStream).
These methods were never called by voice_main.py and contained a broken
sounddevice API call that would raise AttributeError (#2).
- Remove unused recording_buffer field
- Translate Chinese comment/docstring to English (#5)
voice_main.py:
- Move `import scipy.io.wavfile as wav` from inside get_audio_text()
function body to module top-level where all imports belong (#4 related)
- Sort imports: stdlib before third-party, local last
- Remove Chinese comment, replace with English equivalent
- Replace `except:` with `except serial.SerialException as e` to prevent
silently swallowing KeyboardInterrupt and other system exceptions (#1)
- Replace list + pop(0) with collections.deque(maxlen=N) for O(1) buffer
management; removes manual length check in _send_and_audit (#6)
- Rebuild deque in set_damping_params when buffer_size changes
- Translate all Chinese log messages and comments to English (#5)
- Minor: sort imports (stdlib before third-party)