Voice-to-Contract (V2C) is a frictionless interface layer for the Ethereum ecosystem that allows users to execute smart contract operations using natural spoken language. Integrated with the Speech AI protocol, this module enables secure, intent-driven interactions with DeFi protocols β completely hands-free.
- π§ Voice-driven Web3 execution
- π§ Multi-intent natural language parsing (swap, stake, transfer)
- π Dynamic ABI-to-payload synthesis
- π EIP-1559-compatible wallet signing
- β Modular EVM support
β οΈ Built-in rule checks for slippage, value limits, and contract safelisting
src/ βββ main.ts # V2C engine entry point βββ nlp/ β βββ intentParser.ts # Converts voice text into structured commands βββ tx/ β βββ transactionBuilder.ts # Maps command β ABI payload βββ signing/ β βββ consentAndSign.ts # Wallet interaction and user consent
| Intent Type | Voice Example | Result |
|---|---|---|
| Swap | Swap 100 USDC to ETH with 1% max slippage |
Calls swapExactTokensForTokens |
| Stake | Stake 2 ETH |
Calls stake(uint256) |
| Transfer | Transfer 50 DAI to 0xabc... |
Calls transfer(address,uint256) |
import { handleV2C } from './src/main';
import { ethers } from 'ethers';
const provider = new ethers.BrowserProvider(window.ethereum);
await provider.send("eth_requestAccounts", []);
handleV2C("stake 2 eth", provider, "0xYourWalletAddress");- Transaction replay resistance via wallet nonce
- Max limits & slippage enforcement included
- Expandable with EIP-712 signing and proof-of-intent logs
ethers.js(v6+)- Browser with voice-to-text input OR backend with Whisper/STT integration
- GPT-driven dynamic intent resolution
- Whisper real-time microphone integration
- Multichain support (via wagmi/rainbowkit)
- Telegram bot interface
MIT Β© Speech AI Labs