You mean something like this:
\documentclass{article}
\usepackage{amssymb}
\usepackage{stackengine}
%https://tex.stackexchange.com/questions/123219/writing-above-and-below-a-symbol-simultaneously
\newcommand\stackleftrightarrow[1]{%
\mathrel{{\stackon[4pt]{$\leftrightarrow$}{$\scriptscriptstyle#1$}}}}
\begin{document}
$ a \stackleftrightarrow{x} b$
\end{document}
to get:

A more generalised approach would be to:
\documentclass{article}
\usepackage{amsmath,amssymb}
\newcommand{\xrightarrowdbl}[2][]{%
\leftarrow\mathrel{\mkern-14mu}\xrightarrow[#1]{#2}
}
%https://tex.stackexchange.com/questions/260554/two-headed-version-of-xrightarrow
\begin{document}
$x \xrightarrowdbl{\text{a}} y$\\
$x \xrightarrowdbl{\text{your text}} y$
\end{document}
to get:
