High spectral-resolution CO observations of NGC 6814 and NGC 7793