Current ECS switches already support LLDP-MED to configure voice vlan of IP phones automatically. In "switch settings" page (also available in network-wide setting):
set voice vlan mode to "auto" will make the switch continuously send voice vlan and its priority TLVs via LLDP-MED. The IP phone would adopt that VLAN and priority if it supports the same standard.